1. 26 Dec, 2007 3 commits
    • Nick Mathewson's avatar
      r15693@tombo: nickm | 2007-12-25 19:11:29 -0500 · a7ef07b4
      Nick Mathewson authored
       Here, have some terribly clever new buffer code.  It uses a mbuf-like strategy rather than a ring buffer strategy, so it should require far far less extra memory to hold any given amount of data.  Also, it avoids access patterns like x=malloc(1024);x=realloc(x,1048576);x=realloc(x,1024);append_to_freelist(x) that might have been contributing to memory fragmentation.  I've  tested it out a little on peacetime, and it seems to work so far.  If you want to benchmark it for speed, make sure to remove the #define PARANOIA; #define NOINLINE macros at the head of the module.
    • Nick Mathewson's avatar
      r15692@tombo: nickm | 2007-12-25 18:15:50 -0500 · 1401bc54
      Nick Mathewson authored
       Bump version to
    • Nick Mathewson's avatar
      r15691@tombo: nickm | 2007-12-25 18:13:54 -0500 · 0c8142e9
      Nick Mathewson authored
       New, slightly esoteric function, tor_malloc_roundup().  While tor_malloc(x) allocates x bytes, tor_malloc_roundup(&x) allocates the same size of chunk it would use to store x bytes, and sets x to the usable size of that chunk.
  2. 25 Dec, 2007 5 commits
  3. 24 Dec, 2007 7 commits
  4. 23 Dec, 2007 12 commits
  5. 22 Dec, 2007 13 commits