1. 22 Oct, 2012 1 commit
  2. 05 Oct, 2012 1 commit
    • antirez's avatar
      Hash function switched to murmurhash2. · 99c3338c
      antirez authored
      The previously used hash function, djbhash, is not secure against
      collision attacks even when the seed is randomized as there are simple
      ways to find seed-independent collisions.
      
      The new hash function appears to be safe (or much harder to exploit at
      least) in this case, and has better distribution.
      
      Better distribution does not always means that's better. For instance in
      a fast benchmark with "DEBUG POPULATE 1000000" I obtained the following
      results:
      
          1.6 seconds with djbhash
          2.0 seconds with murmurhash2
      
      This is due to the fact that djbhash will hash objects that follow the
      pattern `prefix:<id>` and where the id is numerically near, to near
      buckets. This improves the locality.
      
      However in other access patterns with keys that have no relation
      murmurhash2 has some (apparently minimal) speed advantage.
      
      On the other hand a better distribution should significantly
      improve the quality of the distribution of elements returned with
      dictGetRandomKey() that is used in SPOP, SRANDMEMBER, RANDOMKEY, and
      other commands.
      
      Everything considered, and under the suspect that this commit fixes a
      security issue in Redis, we are switching to the new hash function.
      If some serious speed regression will be found in the future we'll be able
      to step back easiliy.
      
      This commit fixes issue #663.
      99c3338c
  3. 21 Jan, 2012 1 commit
  4. 09 Nov, 2011 1 commit
  5. 08 Nov, 2011 4 commits
  6. 02 Nov, 2011 1 commit
  7. 10 May, 2011 1 commit
  8. 03 Nov, 2010 1 commit
  9. 01 Jul, 2010 1 commit
    • antirez's avatar
      redis.c split into many different C files. · e2641e09
      antirez authored
      networking related stuff moved into networking.c
      
      moved more code
      
      more work on layout of source code
      
      SDS instantaneuos memory saving. By Pieter and Salvatore at VMware ;)
      
      cleanly compiling again after the first split, now splitting it in more C files
      
      moving more things around... work in progress
      
      split replication code
      
      splitting more
      
      Sets split
      
      Hash split
      
      replication split
      
      even more splitting
      
      more splitting
      
      minor change
      e2641e09
  10. 16 Apr, 2010 1 commit
  11. 15 Apr, 2010 2 commits
  12. 08 Apr, 2010 1 commit
  13. 19 Feb, 2010 1 commit
  14. 08 Jun, 2009 1 commit
  15. 30 Apr, 2009 1 commit
  16. 01 Apr, 2009 1 commit
  17. 22 Mar, 2009 1 commit