1. 24 Mar, 2014 2 commits
    • antirez's avatar
      sdscatvprintf(): Try to use a static buffer. · 30639c8c
      antirez authored
      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.
      30639c8c
    • antirez's avatar
      sdscatvprintf(): guess buflen using format length. · a9caca04
      antirez authored
      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.
      a9caca04
  2. 12 Dec, 2013 1 commit
  3. 05 Dec, 2013 1 commit
  4. 24 Jul, 2013 1 commit
    • antirez's avatar
      sdsrange() does not need to return a value. · 6ea8e094
      antirez authored
      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".
      6ea8e094
  5. 23 Jul, 2013 1 commit
  6. 04 Jul, 2013 1 commit
  7. 06 Mar, 2013 3 commits
  8. 19 Jan, 2013 1 commit
  9. 08 Nov, 2012 1 commit
  10. 30 Mar, 2012 1 commit
  11. 14 Mar, 2012 2 commits
  12. 16 Jan, 2012 2 commits
  13. 21 Nov, 2011 1 commit
  14. 02 Nov, 2011 2 commits
  15. 28 Oct, 2011 1 commit
  16. 13 Sep, 2011 1 commit
  17. 25 May, 2011 1 commit
  18. 05 May, 2011 2 commits
  19. 07 Apr, 2011 1 commit
  20. 01 Apr, 2011 1 commit
  21. 22 Mar, 2011 1 commit
  22. 20 Mar, 2011 1 commit
  23. 27 Jan, 2011 1 commit
  24. 10 Dec, 2010 2 commits
  25. 09 Dec, 2010 1 commit
  26. 23 Sep, 2010 2 commits
  27. 02 Sep, 2010 1 commit
  28. 26 Aug, 2010 1 commit
  29. 05 Aug, 2010 1 commit
  30. 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
  31. 11 May, 2010 1 commit