Interpreter memory use/leak
Larry Drebes (ltd@netcom.com)
Thu, 2 Feb 1995 04:52:56 GMT
Reading largish lists and dictionaries from a .py seems to
gobble up all sorts of memory that is not freed until the
interpreter terminates. The same source when imported via a
.pyc takes a fraction of the ram. It could be I'm using a
non-optimal syntax. The .py file looks like:
var={'abc':123,
'ccc': 222,
# 10K lines or so
'zzz':333 }
Is there a better way to use static lists. Marshal seems to
be slower than the .pyc.
larry-