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

Add presized constructors for Map and MapOf #86

Merged
merged 1 commit into from
Nov 5, 2022

Conversation

puzpuzpuz
Copy link
Owner

Closes #85

@puzpuzpuz puzpuzpuz added the enhancement New feature or request label Nov 5, 2022
@puzpuzpuz puzpuzpuz self-assigned this Nov 5, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 5, 2022

Codecov Report

Base: 97.24% // Head: 97.29% // Increases project coverage by +0.05% 🎉

Coverage data is based on head (ac927d4) compared to base (a140d88).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #86      +/-   ##
==========================================
+ Coverage   97.24%   97.29%   +0.05%     
==========================================
  Files           7        7              
  Lines        1017     1037      +20     
==========================================
+ Hits          989     1009      +20     
  Misses         23       23              
  Partials        5        5              
Impacted Files Coverage Δ
map.go 97.13% <100.00%> (+0.05%) ⬆️
mapof.go 96.72% <100.00%> (+0.10%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@puzpuzpuz puzpuzpuz force-pushed the new-map-with-capacity branch 2 times, most recently from 615f532 to b4e057e Compare November 5, 2022 10:36
Also adds missing b.ResetTimer() to map benchmarks.
@puzpuzpuz puzpuzpuz changed the title Allow pre-allocating hash table capacity for Map and MapOf Add presized constructors for Map and MapOf Nov 5, 2022
@puzpuzpuz puzpuzpuz merged commit 4830442 into main Nov 5, 2022
@puzpuzpuz puzpuzpuz deleted the new-map-with-capacity branch November 5, 2022 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map: add way to provide initial size hints
2 participants