Skip to content

Use smaller default size for many collections#9106

Merged
headius merged 1 commit intojruby:masterfrom
headius:smaller_collections
Dec 2, 2025
Merged

Use smaller default size for many collections#9106
headius merged 1 commit intojruby:masterfrom
headius:smaller_collections

Conversation

@headius
Copy link
Member

@headius headius commented Dec 2, 2025

Most of these collections will hold only a few items if any, but they were being set up with default constructors that may choose a too-big starting size. Set up some sane default sizes to avoid lots of wasted space.

Most of these collections will hold only a few items if any, but
they were being set up with default constructors that may choose
a too-big starting size. Set up some sane default sizes to avoid
lots of wasted space.
@headius headius added this to the JRuby 10.0.3.0 milestone Dec 2, 2025
@headius headius merged commit 26970e3 into jruby:master Dec 2, 2025
77 checks passed
@headius headius deleted the smaller_collections branch December 3, 2025 03:52
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