From 02e754313d35a11882aaaf252e474081c18570dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 14 Aug 2009 16:20:13 +0200 Subject: Make LazyElement use __slots__ - to decrease memory consumption --- portato/eix/parser.py | 1 + 1 file changed, 1 insertion(+) (limited to 'portato') 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 -- cgit v1.2.3