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

greatly reduce worst-case gix-config memory consumption #1235

Closed
wants to merge 2 commits into from
Closed

Conversation

Byron
Copy link
Member

@Byron Byron commented Jan 5, 2024

  • fix!: greatly reduce peak memory usage when reading files.
  • add test for memory usage in worse-case scenario

Byron added 2 commits January 5, 2024 11:22
Previously it was possible to cause a memory consumption of 2.5GB
by merely reading a specifically tuned configuration file sized a little
less than 1MB, a massive 2500x amplification.

Data structures have been optimized and premature optimizations removed
in favor of much more efficient memory usage.

Now the same file causes a 50MB peak memory usage, still quite a lot,
but also 50x less than before.
@Byron Byron changed the title greatly reduec worst-case gix-config memory consumption greatly reduce worst-case gix-config memory consumption Jan 5, 2024
@Byron
Copy link
Member Author

Byron commented Jan 5, 2024

Closing - it was merged but with changed commit messages.

@Byron Byron closed this Jan 5, 2024
@Byron Byron deleted the fix-fuzzer branch January 5, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant