We're likely to have a lot of these, so might as well save the memory.
Signed-off-by: Rob Browning <
r...@defaultvalue.org>
Tested-by: Rob Browning <
r...@defaultvalue.org>
---
Pushed.
lib/bup/metadata.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/bup/metadata.py b/lib/bup/metadata.py
index 83f04f77..7e8329cd 100644
--- a/lib/bup/metadata.py
+++ b/lib/bup/metadata.py
@@ -711,6 +711,9 @@ class Metadata:
raise
def __init__(self):
+ __slots__ = ('mode', 'uid', 'atime', 'mtime', 'ctime',
+ 'path', 'size', 'symlink_target', 'hardlink_target',
+ 'linux_attr', 'linux_xattr', 'posix1e_acl')
self.mode = self.uid = self.gid = self.user = self.group = None
self.atime = self.mtime = self.ctime = None
# optional members
--
2.30.2