]> arthur.barton.de Git - bup.git/commit
vfs: take advantage of bup chunking to make file seeking faster. bup-0.14
authorAvery Pennarun <apenwarr@gmail.com>
Fri, 23 Apr 2010 23:18:10 +0000 (19:18 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Fri, 23 Apr 2010 23:27:51 +0000 (19:27 -0400)
commit0e3565afb1cc11683eae5107d80d7d7ef66ed34c
tree77ec780b4abe63edbaa45ea9d5b23fc23d524b1a
parent0ed56b2aac75d322ed9b7065f9e03b891a72c6a9
vfs: take advantage of bup chunking to make file seeking faster.

If you have a huge file, you can now seek around inside it (eg. in 'bup
fuse') without having to read its entire contents.  Calculating the file
size is also really fast now.

This makes a bup fuse-mounted filesystem much more useful for real-time
access.  For example, I was able to connect to an sqlite3 database and have
it work at a reasonable speed.  (Obviously, since 'bup fuse' is written in
python and doesn't currently support threading, the speed could still be
improved, but at least it's no longer godawful.)
cmd/fuse-cmd.py
lib/bup/vfs.py