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

feat: Reduce initial memory allocations for collections #3830

Merged
merged 1 commit into from
Aug 23, 2022
Merged

feat: Reduce initial memory allocations for collections #3830

merged 1 commit into from
Aug 23, 2022

Conversation

jimidle
Copy link
Collaborator

@jimidle jimidle commented Aug 21, 2022

  • Many small collections are created at runtime, the default allocation for
    maps, even though small, still requires memory. Specifying a very small
    initial allocation prevents unnecesary allocations and has no measurable
    effect on performance. A small incremental change.

  • Test suite passes

Signed-off-by: Jim.Idle jimi@gatherstars.com

  - Many small collections are created at runtime, the default allocation for
    maps, even though small, still requires memory. Specifying a very small
    initial allocation prevents unnecesary allocations and has no measurable
    effect on performance. A small incremental change.

Signed-off-by: Jim.Idle <jimi@gatherstars.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants