diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-14 16:20:13 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-14 16:20:13 +0200 |
commit | 02e754313d35a11882aaaf252e474081c18570dd (patch) | |
tree | a631c19c78d2b619f39251a5258c6eb6ec084871 /portato/eix/parser.py | |
parent | b2dadbfb614395d2c2827b43c91cc2f798f990b9 (diff) | |
download | portato-02e754313d35a11882aaaf252e474081c18570dd.tar.gz portato-02e754313d35a11882aaaf252e474081c18570dd.tar.bz2 portato-02e754313d35a11882aaaf252e474081c18570dd.zip |
Make LazyElement use __slots__ - to decrease memory consumption
Diffstat (limited to '')
-rw-r--r-- | portato/eix/parser.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/portato/eix/parser.py b/portato/eix/parser.py index ecfb74c..44c4214 100644 --- a/portato/eix/parser.py +++ b/portato/eix/parser.py @@ -101,6 +101,7 @@ def overlay (file, skip = False): return (string(file), string(file)) class LazyElement (object): + __slots__ = ("file", "get_type", "_value", "pos") def __init__ (self, get_type, file): self.file = file self.get_type = get_type |