Estimating memory use?
Fredrik Lundh
fredrik at pythonware.com
Sun Nov 27 14:34:21 EST 2005
Roy Smith wrote:
> I've already discovered one (very) surprising thing -- if I build a dict
> containing all my regexes (takes about 3 minutes on my PowerBook) and
> pickle them to a file, re-loading the pickle takes just about as long as
> compiling them did in the first place.
the internal RE byte code format is version dependent, so pickle stores the
patterns instead.
</F>
More information about the Python-list
mailing list