]> arthur.barton.de Git - bup.git/commit
Fix bugs in new indexing code.
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 3 Feb 2010 23:56:43 +0000 (18:56 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 4 Feb 2010 04:49:20 +0000 (23:49 -0500)
commit9fd48a26dd9e4fab0b0353c8aafffdd161d0ad96
treeeeaba966fde5fbc426d20c501b8b8c73fd04234c
parent3a04427202f02d05080ef78f777ad161bb515517
Fix bugs in new indexing code.

The logic was way too screwy, so I've simplified it a lot.  Also extended
the unit tests quite a bit to replicate the weird problems I was having.  It
seems pretty stable - and pretty fast - now.

Iterating through an index of my whole home directory (bup index -p ~) now
takes about 5.1 seconds, vs. 3.5 seconds before the rewrite.  However,
iterating through just a *fraction* of the index can now bypass all the
parts we don't care about, so it's much much faster than before.

Could probably still stand some more optimization eventually, but at least
the file format allows for speed.  The rest is just code :)
cmd-index.py
index.py
t/test.sh