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. 04 Jul, 2013 1 commit
  3. 02 Jul, 2013 1 commit
  4. 28 Jun, 2013 1 commit
  5. 20 Jun, 2013 1 commit
  6. 31 May, 2013 1 commit
  7. 30 May, 2013 2 commits
  8. 18 May, 2013 1 commit
  9. 17 May, 2013 1 commit
  10. 15 May, 2013 9 commits
  11. 14 May, 2013 4 commits
  12. 13 May, 2013 4 commits
  13. 02 May, 2013 2 commits
  14. 24 Apr, 2013 1 commit
  15. 09 Apr, 2013 1 commit
  16. 04 Apr, 2013 2 commits
  17. 14 Mar, 2013 1 commit
    • NanXiao's avatar
      Update config.c · 79a13b46
      NanXiao authored
      Fix bug in configGetCommand function: get correct masterauth value.
      79a13b46
  18. 06 Mar, 2013 3 commits
  19. 05 Mar, 2013 1 commit
  20. 25 Feb, 2013 1 commit
  21. 14 Feb, 2013 1 commit