-
Notifications
You must be signed in to change notification settings - Fork 275
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
Examples of hashset. #92
Comments
You could save space by defining an empty struct and using it instead of bool. For example: struct empty {};
cuckoohash_map<int, empty> Table; |
Hmm, it takes much more memory than |
Hey! Sorry for the late reply. Note that due to the design of the table, it will double in capacity every time it needs to do a resize. So it's possible that if your table is filled to capacity at 60G, then another insert would trigger an expansion of the table to capacity 120G. Unfortunately, there's not much we have in the works right now about providing alternative resize factors instead of 2 (see #7), though in the future this may be possible. One thing I'm unclear about though is the number of elements actually present in your table. If your table type is a mapping from |
Closing due to inactivity. Please feel free to reopen if you have more questions! |
Is there an example of libcuckoo hashset? Or should I just use
cuckoohash_map<int, bool> Table;
? Regards.The text was updated successfully, but these errors were encountered: