Replies: 1 comment 2 replies
-
Yes, frozen collections are designed for maximum read performance. It's data structure is heavily specialized based on its content.
You can try |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Yes, the question contains the answer. =D
But my service keeps a huge set of items in memory, and this set should be extended once a day.
If I do it this way:
I am going to have
O(2B+S)
requirement of memory size, if I am not mistaken.Yet I'd like to stay with
O(B+S)
memory by paying more with CPU cycles.Are performance gains of using frozen set decrease with the size of the set?
Beta Was this translation helpful? Give feedback.
All reactions