-
-
Notifications
You must be signed in to change notification settings - Fork 206
Description
See numba/numba#9994 for details.
Basically, when using numba with any of the builds here, numba always prints the following message on startup:
.../lib/python3.10/site-packages/numba/cpython/old_hashing.py:477: UserWarning: FNV hashing is not implemented in Numba. See PEP 456 https://www.python.org/dev/peps/pep-0456/ for rationale over not using FNV. Numba will continue to work, but hashes for built in types will be computed using siphash24. This will permit e.g. dictionaries to continue to behave as expected, however anything relying on the value of the hash opposed to hash as a derived property is likely to not work as expected.
I don't fully understand it but the explanation given in the above linked issue is:
this usually happens when Python has been built with FNV hashing instead of siphash24, which can happen due to configuration / setup errors at build time of the Python interpreter.
It was determined there that it's not an issue with numba but rather some missing option or configuration when creating the Python build.
Is it possible to update the builds to include siphash24 support? Apparently this is the default starting at 3.4 but the builds here don't have support for it, I'm not sure why.
A little research seems to suggest that calling configure with:
--with-hash-algorithm=siphash24
... will enable the algorithm, but again I'm not sure why the > 3.4 builds here don't seem to use it.
Sorry I don't know more about it.