This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Robert.Elsner, mark.dickinson
Date 2012-04-16.12:25:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334579108.16.0.286213927166.issue14596@psf.upfronthosting.co.za>
In-reply-to
Content
I suspect that this is due to the struct module cache, which caches Struct instances corresponding to formats used.  If that's true, there's no real leak as such.

As a test, what happens if you increase your xrange(30) to xrange(300)?  (And perhaps decrease the size of the struct itself a bit to compensate).  You should see that memory usage stays constant after the first ~100 runs.

Using Struct directly is a good workaround if this is a problem.
History
Date User Action Args
2012-04-16 12:25:08mark.dickinsonsetrecipients: + mark.dickinson, Robert.Elsner
2012-04-16 12:25:08mark.dickinsonsetmessageid: <1334579108.16.0.286213927166.issue14596@psf.upfronthosting.co.za>
2012-04-16 12:25:07mark.dickinsonlinkissue14596 messages
2012-04-16 12:25:07mark.dickinsoncreate