Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt at optimizing allocs in replace.c #142

Commits on Apr 25, 2024

  1. Optimization of memory usage in replace.c

    * Add two fast paths that completely avoid the replacement machinery
      (these two fast paths were formerly present in 3.1);
    * Use a circular buffer instead of a list for the temporary queue of
      tokens in streams;
    * Do not reallocate tokens passed from the copy-replacing stream to the
      replace stream
    lefessan committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    78ef11d View commit details
    Browse the repository at this point in the history