Skip to content
Snippets Groups Projects
Commit 839e0dcd authored by vlorentz's avatar vlorentz
Browse files

Add missing __slots__ to HashableObjectWithManifest

This should slightly reduce the memory used by dir/rev/rel objects
parent a0674ad8
No related branches found
No related tags found
1 merge request!222Add missing __slots__ to HashableObjectWithManifest
......@@ -243,6 +243,8 @@ class HashableObjectWithManifest(HashableObject):
"""Derived class of HashableObject, for objects that may need to store
verbatim git objects as ``raw_manifest`` to preserve original hashes."""
__slots__ = ()
raw_manifest: Optional[bytes] = None
"""Stores the original content of git objects when they cannot be faithfully
represented using only the other attributes.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment