[issue14596] struct.unpack memory leak

Antoine Pitrou report at bugs.python.org
Mon Apr 16 15:02:51 CEST 2012

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

It appears the storage of Struct instances is rather inefficient when there's a repeat code such as "<48L". In this example, 48 almost identical structures describing the "L" format (struct _formatcode) will be created. You can guess what happens with large repeat counts...


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list