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

Fix memory usage when reading input #94

Merged
merged 1 commit into from
Dec 17, 2022

Commits on Aug 5, 2022

  1. Fix memory usage when reading input

    Currently, every time mod_zip reads 8KB, it allocates a new string, copies all existing data,
    and doesn't free the old string. This results in GBs of memory use for a 10MB input.
    
    Just use an nginx array which automatically doubles in size as needed.
    (Still leaks memory, but not as much.)
    
    Fixes evanmiller#67
    dimaryaz committed Aug 5, 2022
    Configuration menu
    Copy the full SHA
    288221c View commit details
    Browse the repository at this point in the history