]> arthur.barton.de Git - bup.git/commit - t/test.sh
cmd/restore: embarrassingly slow implementation of 'bup restore' bup-0.19
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 8 Sep 2010 09:37:54 +0000 (02:37 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 8 Sep 2010 10:20:38 +0000 (03:20 -0700)
commitbab7b16b760ba1fd686f6f5b274fc8ba2ad360e2
treec18e29014b93efe4c526ef224e9bfd5474ca92b1
parent0a6105bc937fb2846cebe8d7a9dc9d358237163e
cmd/restore: embarrassingly slow implementation of 'bup restore'

Well, that was easy, since vfs.py already existed and is doing most of the
hard work.  Only 103 lines including all the log message handling and
whatnot.

Only one catch: the restoring code is definitely not optimized.  Among other
things (like the probably-excessive-for-our-restoring-needs layering in
vfs.py), we're still calling into 'git cat-file --stdin' to retrieve our
objects.  This involves lots and lots of context switches, plus it can't use
midx files for its lookups.  The result is that restoring takes much more
CPU time and memory than it really should.  But oh well, we have to start
somewhere.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
Documentation/bup-ftp.md
Documentation/bup-fuse.md
Documentation/bup-restore.md [new file with mode: 0644]
Documentation/bup-save.md
Documentation/bup-web.md
Documentation/bup.md
README.md
cmd/restore-cmd.py [new file with mode: 0755]
lib/bup/vfs.py
main.py
t/test.sh