Skip to content

feat: Reduce initial memory allocations for collections#3830

Merged
parrt merged 1 commit intoantlr:devfrom
jimidle:feature/collection
Aug 23, 2022
Merged

feat: Reduce initial memory allocations for collections#3830
parrt merged 1 commit intoantlr:devfrom
jimidle:feature/collection

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