diff options
author | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-06-17 03:24:05 +0000 |
---|---|---|
committer | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-06-17 03:24:05 +0000 |
commit | 6b72b10acde7061c1180a59d6eea3c0c20780683 (patch) | |
tree | 1284913e6d64c09994149f0da28551029b522731 /rdiff-backup/src/rpath.py | |
parent | 30a98a1fa0d78837915e9b26b35c9abfd0783cf3 (diff) | |
download | rdiff-backup-6b72b10acde7061c1180a59d6eea3c0c20780683.tar.gz |
Many optimizations - up to 3x speed improvement
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@134 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/src/rpath.py')
-rw-r--r-- | rdiff-backup/src/rpath.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rdiff-backup/src/rpath.py b/rdiff-backup/src/rpath.py index 73910be..b6d9b70 100644 --- a/rdiff-backup/src/rpath.py +++ b/rdiff-backup/src/rpath.py @@ -217,6 +217,7 @@ class RORPath(RPathStatic): (not Globals.change_ownership or self.issym())): # Don't compare gid/uid for symlinks or if not change_ownership pass + elif key == 'atime' and not Globals.preserve_atime: pass elif key == 'devloc' or key == 'inode' or key == 'nlink': pass elif (not other.data.has_key(key) or self.data[key] != other.data[key]): return None @@ -425,7 +426,7 @@ class RPath(RORPath): if base is not None: self.path = "/".join((base,) + index) self.file = None if data or base is None: self.data = data - else: self.setdata() + else: self.data = self.conn.C.make_file_dict(self.path) def __str__(self): return "Path: %s\nIndex: %s\nData: %s" % (self.path, self.index, @@ -448,6 +449,10 @@ class RPath(RORPath): self.path = "/".join((self.base,) + self.index) def setdata(self): + """Set data dictionary using C extension""" + self.data = self.conn.C.make_file_dict(self.path) + + def setdata_old(self): """Create the data dictionary""" statblock = self.conn.RPathStatic.tupled_lstat(self.path) if statblock is None: |