Skip to content

Speeding up HeavyHitters add function #99

Answered by barrust
argenisleon asked this question in Q&A
Discussion options

You must be logged in to vote

I am glad that you have found this package helpful. The default fnv-1a hash can be slow due to it being a pure python implementation. There are several things that one can do to speed it up such as using a hashing function implemented in C. For example, you can see the documentation that shows how to easily setup a custom hashing strategy or by utilizing custom hashing functions.

If you do not want to build your own system, there are additional functions that can be used, default_md5 and default_sha256, which are both implemented in C and would be faster than the default fnv-1a code. If you want to use something else, there are decorators that can be used to help ensure that you get the c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by argenisleon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants