Hi there, I started using memcached in prod a week or two ago, and am loving it. I wanted to give back, and took a look through the issues board, but most of them looked solved. So, in my usual "it's never fast enough" style, I went and profiled its performance, and had some fun.
After seeing that MurmurHash3 was taking a good amount of the execution time, I decided to run a test integrating one of my old favorite hash functions, xxhash <https://github.com/Cyan4973/xxHash>. My *guess* is that Memcached could benefit from using the hash function, as it is faster than MMH3 and has several native variants. I ran some of my own tests, and found roughly equal performance, but with no tuning performed on xxhash. For example, using an assembly (x86/arm/etc) version could likely speed up hashing, along with properly implementing it in memcached. However, I was also running this on a much older Nehalem CPU, so there could be unseen advantages to one or both of the algorithms by running them on a newer CPU. I'm in the process of fighting with my newer systems to get libevent installed properly, so I'll report back with more up-to-date tests later. I did a cursory search, but didn't find any mention of the algo in the mailing list. If this has been discussed, though, apologies for bringing it up again. On the other hand, I would be happy to write a PR to add it, using the `hash_algorithm` CLI arg. Thanks, Eamonn -- --- You received this message because you are subscribed to the Google Groups "memcached" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
