]> git.michaelhowe.org Git - packages/b/bup.git/commit
cmd/server: find .idx filenames more efficiently when needed.
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 22 Dec 2010 18:49:20 +0000 (10:49 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 22 Dec 2010 18:52:10 +0000 (10:52 -0800)
commit35a85c09e9e6f0ac302abd4442d6f64fa09e46ff
tree913e0a7d42ab4d9f34da7c48260f3c4dd4a53765
parent2b25cc321b98c08ed67a3a4139a94b526892bf57
cmd/server: find .idx filenames more efficiently when needed.

Rather than mapping *all* the .idx files into memory at once just to look up
a single object, just open/read/close them sequentially.  This should
significantly increase the total repo size on a 32-bit system.  (Of course,
it's still not very ideal; we really should have some kind of fallback mode
for when our total set of indexes starts getting too big.)

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