1. 20 Apr, 2015 2 commits
  2. 19 Apr, 2015 1 commit
  3. 08 Jan, 2015 1 commit
  4. 02 Jan, 2015 1 commit
    • Matt Stancliff's avatar
      Add sdsnative() · e1619772
      Matt Stancliff authored
      Use the existing memory space for an SDS to convert it to a regular
      character buffer so we don't need to allocate duplicate space just
      to extract a usable buffer for native operations.
      e1619772
  5. 23 Dec, 2014 1 commit
    • Matt Stancliff's avatar
      Allow all code tests to run using Redis args · 8febcffd
      Matt Stancliff authored
      Previously, many files had individual main() functions for testing,
      but each required being compiled with their own testing flags.
      That gets difficult when you have 8 different flags you need
      to set just to run all tests (plus, some test files required
      other files to be compiled aaginst them, and it seems some didn't
      build at all without including the rest of Redis).
      
      Now all individual test main() funcions are renamed to a test
      function for the file itself and one global REDIS_TEST define enables
      testing across the entire codebase.
      
      Tests can now be run with:
        - `./redis-server test <test>`
      
        e.g. ./redis-server test ziplist
      
      If REDIS_TEST is not defined, then no tests get included and no
      tests are included in the final redis-server binary.
      8febcffd
  6. 11 Dec, 2014 2 commits
  7. 10 Dec, 2014 2 commits
    • antirez's avatar
      sds.c: more tests for sdstrim(). · 9bb4ef87
      antirez authored
      9bb4ef87
    • Brochen's avatar
      Update sds.c · 181300d4
      Brochen authored
      in the case (all chars of the string s found in 'cset' ),
      line[573] will no more do the same thing line[572] did.
      this will be more faster especially in the case that the string s is very long and all chars of string s found in 'cset'
      181300d4
  8. 03 Nov, 2014 1 commit
  9. 02 Nov, 2014 2 commits
  10. 29 Sep, 2014 2 commits
  11. 25 Aug, 2014 1 commit
  12. 13 Aug, 2014 1 commit
  13. 12 Aug, 2014 1 commit
  14. 26 Jun, 2014 1 commit
  15. 23 Jun, 2014 1 commit
  16. 28 Apr, 2014 2 commits
    • antirez's avatar
      Added new sdscatfmt() %u and %U format specifiers. · 2d76736a
      antirez authored
      This commit also fixes a bug in the implementation of sdscatfmt()
      resulting from stale references to the SDS string header after
      sdsMakeRoomFor() calls.
      2d76736a
    • antirez's avatar
      sdscatfmt() added to SDS library. · 53575c47
      antirez authored
      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.
      53575c47
  17. 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
  18. 12 Dec, 2013 1 commit
  19. 05 Dec, 2013 1 commit
  20. 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
  21. 23 Jul, 2013 1 commit
  22. 04 Jul, 2013 1 commit
  23. 06 Mar, 2013 3 commits
  24. 19 Jan, 2013 1 commit
  25. 08 Nov, 2012 1 commit
  26. 30 Mar, 2012 1 commit
  27. 14 Mar, 2012 2 commits
  28. 16 Jan, 2012 2 commits
  29. 21 Nov, 2011 1 commit