]> arthur.barton.de Git - bup.git/commit - lib/bup/_helpers.c
_helpers.firstword(): a new function to extract the first 32 bits.
authorAvery Pennarun <apenwarr@gmail.com>
Fri, 27 Aug 2010 03:11:45 +0000 (20:11 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Fri, 27 Aug 2010 03:14:48 +0000 (20:14 -0700)
commit2ef4957125477f7900f3c92fe87a3914148c44ff
treeb873f779abcb06ce1fb8b434de6c2f5f89e7a797
parent2ae3f8d5f360daf55b0932b0cce7d3ccbe24c503
_helpers.firstword(): a new function to extract the first 32 bits.

This is a pretty common operation in git.py and it speeds up cmd/memtest
results considerably: from 3.7 seconds to 3.0 seconds.

That gets us *almost* as fast as we were before the whole statistical
guessing thing, but we still enjoy the improved memory usage.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
lib/bup/_helpers.c
lib/bup/git.py