Martin v. Loewis wrote:
Guido van Rossum <guido@python.org> writes:
Is it worth it?
If you believe that the problem is real, yes.
I think that the tuple is not the problem here, it's the fact that so many objects are recorded in the memo to later rebuild recursive structures. Now, I believe that recursive structures in pickles are not very common, so the memo is mostly useless in these cases. Perhaps pickle could grow an option to assume that a data structure is non-recursive ?! In that case, no data would be written to the memo (or only the id() mapped to 1 to double-check). -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/