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

Use presized Map/MapOf argument as the minimal map capacity #121

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

puzpuzpuz
Copy link
Owner

Closes #103
Closes #119
Refs #116, #118

Also, NewMapPresized/NewMapOfPresized's argument is now treated as the minimal table capacity. The underlying hash table won't shrink beyond the specified capacity.

@puzpuzpuz puzpuzpuz added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 25, 2024
@puzpuzpuz puzpuzpuz self-assigned this Feb 25, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.25%. Comparing base (1386eb4) to head (7c91935).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #121   +/-   ##
=======================================
  Coverage   98.25%   98.25%           
=======================================
  Files           8        8           
  Lines        1147     1149    +2     
=======================================
+ Hits         1127     1129    +2     
  Misses         16       16           
  Partials        4        4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@puzpuzpuz puzpuzpuz merged commit cdaca8b into main Feb 25, 2024
10 checks passed
@puzpuzpuz puzpuzpuz deleted the tunable-min-map-capacity branch February 25, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
2 participants