1. 22 Jul, 2013 1 commit
    • antirez's avatar
      Introduction of a new string encoding: EMBSTR · 894eba07
      antirez authored
      Previously two string encodings were used for string objects:
      
      1) REDIS_ENCODING_RAW: a string object with obj->ptr pointing to an sds
      stirng.
      
      2) REDIS_ENCODING_INT: a string object where the obj->ptr void pointer
      is casted to a long.
      
      This commit introduces a experimental new encoding called
      REDIS_ENCODING_EMBSTR that implements an object represented by an sds
      string that is not modifiable but allocated in the same memory chunk as
      the robj structure itself.
      
      The chunk looks like the following:
      
      +--------------+-----------+------------+--------+----+
      | robj data... | robj->ptr | sds header | string | \0 |
      +--------------+-----+-----+------------+--------+----+
                           |                       ^
                           +-----------------------+
      
      The robj->ptr points to the contiguous sds string data, so the object
      can be manipulated with the same functions used to manipulate plan
      string objects, however we need just on malloc and one free in order to
      allocate or release this kind of objects. Moreover it has better cache
      locality.
      
      This new allocation strategy should benefit both the memory usage and
      the performances. A performance gain between 60 and 70% was observed
      during micro-benchmarks, however there is more work to do to evaluate
      the performance impact and the memory usage behavior.
      894eba07
  2. 29 Jan, 2013 1 commit
  3. 28 Jan, 2013 2 commits
  4. 19 Jan, 2013 1 commit
  5. 22 Nov, 2012 1 commit
  6. 08 Nov, 2012 1 commit
  7. 23 May, 2012 1 commit
    • antirez's avatar
      Fixed issue #516 (ZINTERSTORE mixing sets and zsets). · 348ee1a4
      antirez authored
      Weeks ago trying to fix an harmless GCC warning I introduced a bug in
      the ziplist-encoded implementations of sorted sets.
      
      The bug completely broke zuiNext() iterator, that is used in the
      ZINTERSTORE and ZUNIONSTORE implementation, so those two commands are no
      longer reliable starting from Redis version 2.4.12 and latest 2.6.0-RC
      releases.
      
      This commit fixes the problem and adds a regression test.
      348ee1a4
  8. 24 Apr, 2012 1 commit
  9. 22 Feb, 2012 1 commit
  10. 21 Feb, 2012 1 commit
  11. 16 Jan, 2012 1 commit
  12. 11 Jan, 2012 1 commit
  13. 23 Dec, 2011 1 commit
  14. 19 Dec, 2011 1 commit
    • BigCat's avatar
      Fix issue #247 : Accepting non-integer parameters when shouldn't · 706b32e0
      BigCat authored
      Using `getLongFromObjectOrReply` instead of `atoi` if possible.
      The following functions are modified.
      
      * lrangeCommand
      * ltrimCommand
      * lremCommand
      * lindexCommand
      * lsetCommand
      * zunionInterGenericCommand
      * genericZrangebyscoreCommand
      * sortCommand
      706b32e0
  15. 18 Dec, 2011 1 commit
  16. 14 Nov, 2011 1 commit
  17. 08 Nov, 2011 1 commit
  18. 23 Oct, 2011 1 commit
  19. 04 Oct, 2011 1 commit
  20. 03 Oct, 2011 2 commits
  21. 31 May, 2011 2 commits
  22. 24 May, 2011 1 commit
  23. 19 May, 2011 2 commits
  24. 15 May, 2011 2 commits
  25. 04 May, 2011 1 commit
  26. 28 Apr, 2011 1 commit
  27. 06 Apr, 2011 2 commits
  28. 21 Mar, 2011 1 commit
  29. 14 Mar, 2011 2 commits
  30. 11 Mar, 2011 2 commits
  31. 10 Mar, 2011 2 commits