Welcome! Log In Create A New Profile

Advanced

Re: hash algorithm for nginx cache

Joe Bofh
May 15, 2009 01:29AM
Igor,

Sure. But the question is how long will the entry stay in the cache? If
it's a fairly finite amount of time, the possibility of a collision
drops dramatically.

I was suggesting murmurhash as it is significantly faster than md5/sha1
and for something like a object, the cryptographic requirements are
simply not there (i.e. the cached object does not need to be encrypted).

If there is concern over collisions, something like a bloom filter or a
cuckoo hash could be used. http://en.wikipedia.org/wiki/Cuckoo_hashing

--J

Igor Sysoev wrote:

>
> I'm not expert in cryptography, but it seems to me that 128-bit MD5
> should have though not 2^64 times less collisions, but at least 10^9
> times
> less than any 64-bit hash.

--
Posted via http://www.ruby-forum.com/.
Subject Author Posted

hash algorithm for nginx cache

Joe Bofh April 18, 2009 02:27PM

Re: hash algorithm for nginx cache

Marcus Clyne April 18, 2009 04:31PM

Re: hash algorithm for nginx cache

Joe Bofh April 18, 2009 11:42PM

Re: hash algorithm for nginx cache

Marcus Clyne April 19, 2009 07:13AM

Re: hash algorithm for nginx cache

Igor Sysoev April 21, 2009 03:17AM

Re: hash algorithm for nginx cache

Joe Bofh April 21, 2009 11:46AM

Re: hash algorithm for nginx cache

Johan Bergstr April 21, 2009 12:23PM

Re: hash algorithm for nginx cache

Joe Bofh April 21, 2009 07:22PM

Re: hash algorithm for nginx cache

Igor Sysoev April 22, 2009 07:07AM

Re: hash algorithm for nginx cache

Joe Bofh May 15, 2009 01:29AM

Re: hash algorithm for nginx cache

Igor Sysoev May 16, 2009 11:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready