1. 21 6月, 2014 2 次提交
    • A
      Added new sdscatfmt() %u and %U format specifiers. · 4acc3daa
      antirez 提交于
      This commit also fixes a bug in the implementation of sdscatfmt()
      resulting from stale references to the SDS string header after
      sdsMakeRoomFor() calls.
      4acc3daa
    • A
      sdscatfmt() added to SDS library. · 3a915ace
      antirez 提交于
      sdscatprintf() relies on printf() family libc functions and is sometimes
      too slow in critical code paths. sdscatfmt() is an alternative which is:
      
      1) Far less capable.
      2) Format specifier uncompatible.
      3) Faster.
      
      It is suitable to be used in those speed critical code paths such as
      CLIENT LIST output generation.
      3a915ace
  2. 24 3月, 2014 2 次提交
    • A
      sdscatvprintf(): Try to use a static buffer. · 72257f4b
      antirez 提交于
      For small content the function now tries to use a static buffer to avoid
      a malloc/free cycle that is too costly when the function is used in the
      context of performance critical code path such as INFO output generation.
      
      This change was verified to have positive effects in the execution speed
      of the INFO command.
      72257f4b
    • A
      sdscatvprintf(): guess buflen using format length. · 7a20f096
      antirez 提交于
      sdscatvprintf() uses a loop where it tries to output the formatted
      string in a buffer of the initial length, if there was not enough room,
      a buffer of doubled size is tried and so forth.
      
      The initial guess for the buffer length was very poor, an hardcoded
      "16". This caused the printf to be processed multiple times without a
      good reason. Given that printf functions are already not fast, the
      overhead was significant.
      
      The new heuristic is to use a buffer 4 times the length of the format
      buffer, and 32 as minimal size. This appears to be a good balance for
      typical uses of the function inside the Redis code base.
      
      This change improved INFO command performances 3 times.
      7a20f096
  3. 12 12月, 2013 1 次提交
  4. 05 12月, 2013 1 次提交
  5. 24 7月, 2013 1 次提交
    • A
      sdsrange() does not need to return a value. · f899ab55
      antirez 提交于
      Actaully the string is modified in-place and a reallocation is never
      needed, so there is no need to return the new sds string pointer as
      return value of the function, that is now just "void".
      f899ab55
  6. 23 7月, 2013 1 次提交
  7. 08 7月, 2013 1 次提交
  8. 06 3月, 2013 3 次提交
  9. 19 1月, 2013 1 次提交
    • G
      Fixed many typos. · 1caf0939
      guiquanz 提交于
      Conflicts fixed, mainly because 2.8 has no cluster support / files:
      	00-RELEASENOTES
      	src/cluster.c
      	src/crc16.c
      	src/redis-trib.rb
      	src/redis.h
      1caf0939
  10. 09 11月, 2012 1 次提交
  11. 27 9月, 2012 1 次提交
  12. 14 3月, 2012 2 次提交
  13. 16 1月, 2012 2 次提交
  14. 21 11月, 2011 1 次提交
  15. 02 11月, 2011 2 次提交
  16. 28 10月, 2011 1 次提交
  17. 13 9月, 2011 1 次提交
  18. 25 5月, 2011 1 次提交
  19. 05 5月, 2011 2 次提交
  20. 07 4月, 2011 1 次提交
  21. 02 4月, 2011 1 次提交
  22. 23 3月, 2011 1 次提交
  23. 21 3月, 2011 1 次提交
  24. 27 1月, 2011 1 次提交
  25. 10 12月, 2010 2 次提交
  26. 09 12月, 2010 1 次提交
  27. 23 9月, 2010 2 次提交
  28. 03 9月, 2010 1 次提交
  29. 26 8月, 2010 1 次提交
  30. 05 8月, 2010 1 次提交