-
Notifications
You must be signed in to change notification settings - Fork 37
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
Optimize 'sizeMap' #99
Comments
Not sure if it's worth the extra logic, since you still need to traverse the whole map to figure out how many members it has. |
I'll write a benchmark to check. |
Ah, I see what you mean now. Well, I think that's a downside to using mono-foldable's |
Oh, awesome, didn't realize Map and Set had that info available! |
I think
sizeMap
could be faster in the cases where either the keys or the values are of constant size.The text was updated successfully, but these errors were encountered: