[issue14596] struct.unpack memory leak

Antoine Pitrou report at bugs.python.org
Mon Apr 16 15:59:06 CEST 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> Perhaps the best quick fix would be to only cache small
> PyStructObjects, for some value of 'small'.  (Total size < a few
> hundred bytes, perhaps.)

Or perhaps not care at all? Is there a use case for huge repeat counts?
(limiting cacheability could decrease performance in existing
applications)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14596>
_______________________________________


More information about the Python-bugs-list mailing list