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

[Q] could you add some 64 bit examples too #5

Open
rofl0r opened this issue Jan 22, 2021 · 4 comments
Open

[Q] could you add some 64 bit examples too #5

rofl0r opened this issue Jan 22, 2021 · 4 comments

Comments

@rofl0r
Copy link

rofl0r commented Jan 22, 2021

since the README lacks anything 64bit, i compiled a GCC with openmp support to run prospector myself. interestingly, only one thread is used. is the omp parallel pragma only used for a section of code that's rarely run ?
i'm running ./prospector -8, ftr. how long will i have to wait in average until a usable hash func is printed on a modern ryzen core ?

@skeeto
Copy link
Owner

skeeto commented Jan 31, 2021 via email

@rofl0r
Copy link
Author

rofl0r commented Jan 31, 2021

thanks for your reply. for the moment i ended up using the 64bit method from this stackoverflow post that links here: https://stackoverflow.com/questions/664014/what-integer-hash-function-are-good-that-accepts-an-integer-hash-key (second answer with 157 upvotes), though i'd certainly appreciate if you find a way to improve the 64bit algorithm and post some results.

btw, is there an explanation somewhere how the hash functions using the values of your recent README additions can be reversed ? i've not seen an obvious relationship between the values used in the hash and reversal functions.

@skeeto
Copy link
Owner

skeeto commented Feb 6, 2021 via email

@Logan007
Copy link
Contributor

computing the hash inversions

I found Marc B. Reynolds' explanations to be extremely helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants