-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support hashtables with more than 2G elements #26
Comments
the principle is:
so it can easily be extended given a sequence of prime numbers |
Something like this
but probably fewer than that because each element is a bunch of words |
Thanks for the explanation! So fundamentally there is enough freedom to select a prime around +20%. I have an idea to choose primes such that division by them (which is ubiquitous throughout all routines) can be replaced by wide multiplication and right shift, but have not worked out all details yet. |
Fixed by #27. |
Some users run Haskell on machines with over 1TB memory, it's not impossible to have over 2G elements of hashtable.
vector-hashtables/src/Data/Vector/Hashtables/Internal.hs
Lines 905 to 914 in 6a671f6
What's the principle behind the choice of prime numbers here? How can it be extended further, to cover entire
Int64
range?The text was updated successfully, but these errors were encountered: