1. 21 Jul, 2011 11 commits
  2. 19 Jul, 2011 2 commits
  3. 06 Jul, 2011 2 commits
  4. 04 Jul, 2011 1 commit
    • Rusty Russell's avatar
      tap: WANT_PTHREAD not HAVE_PTHREAD · 532feb88
      Rusty Russell authored
      I'm not sure that a "pthread-safe" tap library is very useful; how many
      people have multiple threads calling ok()?
      
      Kirill Shutemov noted that it gives a warning with -Wundef; indeed, we
      should ask in this case whether they want pthread support, not whether the
      system has pthread support to offer.
      532feb88
  5. 02 Jul, 2011 1 commit
    • Joey Adams's avatar
      json: Deleted the "notes" file. · 993b67a5
      Joey Adams authored
      This file contains my private ramblings about the JSON module,
      and was not meant to be included in the public release.
      993b67a5
  6. 01 Jul, 2011 1 commit
  7. 21 Jun, 2011 1 commit
  8. 19 Jun, 2011 1 commit
    • Russell Steicke's avatar
      antithread: patch to antithread arabella example · 58fbdc9e
      Russell Steicke authored
      I've been using the antithread arabella example to generate some
      "arty" portraits for decoration.  I've made a few changes to it
      (triangle sizes and number of generations before giving up), and may
      send those as patches later.
      
      Because some of the images I'm generating have taken quite a while
      (many days) I've needed to restart the run after rebooting machines
      for other reasons, and noticed that arabella restarted the generation
      count from zero.  I wanted to continue the generation count, so here's
      a patch to do just that.
      58fbdc9e
  9. 17 Jun, 2011 3 commits
  10. 16 Jun, 2011 1 commit
  11. 15 Jun, 2011 1 commit
  12. 11 Jun, 2011 1 commit
  13. 08 Jun, 2011 1 commit
    • Rusty Russell's avatar
      hash: remove VALGRIND #ifdef - always run clean. · 23319007
      Rusty Russell authored
      My simple test program on my laptop showed that with modern 32 bit Intel
      CPUs and modern GCC, there's no measurable penalty for the clean version.
      
      Andrew Bartlett complained that the valgrind noise was grating.  Agreed.
      23319007
  14. 05 Jun, 2011 1 commit
  15. 31 May, 2011 2 commits
  16. 30 May, 2011 1 commit
  17. 20 May, 2011 4 commits
  18. 10 May, 2011 3 commits
  19. 27 Apr, 2011 2 commits
    • Rusty Russell's avatar
      tdb2: fix msync() arg · 18fe5ef0
      Rusty Russell authored
      PAGESIZE used to be defined to getpagesize(); we changed it to a
      constant in b556ef1f, which broke the msync() call.
      18fe5ef0
    • Rusty Russell's avatar
      tdb2: use direct access functions when creating recovery blob · 71d8cfb6
      Rusty Russell authored
      We don't need to copy into a buffer to examine the old data: in the
      common case, it's mmaped already.  It's made a bit trickier because
      the tdb_access_read() function uses the current I/O methods, so we
      need to restore that temporarily.
      
      The difference was in the noise, however (the sync no-doubt
      dominates).
      
      Before:
      $ time ./growtdb-bench 250000 10 > /dev/null && ls -l /tmp/growtdb.tdb && time ./tdbtorture -s 0 && ls -l torture.tdb && ./speed --transaction 2000000
      real	0m45.021s
      user	0m16.261s
      sys	0m2.432s
      -rw------- 1 rusty rusty 364469344 2011-04-27 22:55 /tmp/growtdb.tdb
      testing with 3 processes, 5000 loops, seed=0
      OK
      
      real	1m10.144s
      user	0m0.480s
      sys	0m0.460s
      -rw------- 1 rusty rusty 391992 2011-04-27 22:56 torture.tdb
      Adding 2000000 records:  863 ns (110601144 bytes)
      Finding 2000000 records:  565 ns (110601144 bytes)
      Missing 2000000 records:  383 ns (110601144 bytes)
      Traversing 2000000 records:  409 ns (110601144 bytes)
      Deleting 2000000 records:  676 ns (225354680 bytes)
      Re-adding 2000000 records:  784 ns (225354680 bytes)
      Appending 2000000 records:  1191 ns (247890168 bytes)
      Churning 2000000 records:  2166 ns (423133432 bytes)
      
      After:
      real	0m47.141s
      user	0m16.073s
      sys	0m2.460s
      -rw------- 1 rusty rusty 364469344 2011-04-27 22:58 /tmp/growtdb.tdb
      testing with 3 processes, 5000 loops, seed=0
      OK
      
      real	1m4.207s
      user	0m0.416s
      sys	0m0.504s
      -rw------- 1 rusty rusty 313576 2011-04-27 22:59 torture.tdb
      Adding 2000000 records:  874 ns (110601144 bytes)
      Finding 2000000 records:  565 ns (110601144 bytes)
      Missing 2000000 records:  393 ns (110601144 bytes)
      Traversing 2000000 records:  404 ns (110601144 bytes)
      Deleting 2000000 records:  684 ns (225354680 bytes)
      Re-adding 2000000 records:  792 ns (225354680 bytes)
      Appending 2000000 records:  1212 ns (247890168 bytes)
      Churning 2000000 records:  2191 ns (423133432 bytes)
      
      71d8cfb6