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

Pre-allocate buffer #422

Merged
merged 2 commits into from
Apr 11, 2023
Merged

Pre-allocate buffer #422

merged 2 commits into from
Apr 11, 2023

Commits on Apr 11, 2023

  1. Pre-allocate buffer

    If we let transcode to its own allocation it will allocate a small
    vector, start filling it, resize the vector, fill it some more, resize
    the vector, etc.
    
    Instead in this commit we pre-allocate a vector of the corect size and
    pass it to transcode().
    
    Inspired by apache#399
    JoaoAparicio committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    383d0fb View commit details
    Browse the repository at this point in the history
  2. Bugfix compat

    JoaoAparicio committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    5a69758 View commit details
    Browse the repository at this point in the history