]> arthur.barton.de Git - bup.git/commit
vfs.py: don't redundantly _populate_metadata for Dir()s.
authorRob Browning <rlb@defaultvalue.org>
Fri, 4 Apr 2014 20:55:37 +0000 (15:55 -0500)
committerRob Browning <rlb@defaultvalue.org>
Fri, 4 Apr 2014 20:55:39 +0000 (15:55 -0500)
commitdd9e22dc64b2716caec076ebbee65400c4c9f957
tree327d257385b86d9e97ad5f8adf0a42f8ef459a69
parent2334887894f5d1ea7777859c5f0457c9ceadcb16
vfs.py: don't redundantly _populate_metadata for Dir()s.

This fix should significantly improve performance.  Without it, every
call to node.metadata() caused the VFS to read the entire .bupm file
in order to (re)initialize the metadata for every entry in the
directory.  Don't do that.

I thought I'd already implemented this, but apparently only in my
head.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/vfs.py