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 rhettinger
Recipients amaury.forgeotdarc, belopolsky, rhettinger, vstinner
Date 2013-10-06.07:42:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381045349.72.0.892338347505.issue18874@psf.upfronthosting.co.za>
In-reply-to
Content
I recommend that tracemalloc focus exclusively on real allocations and ignore freelisting.   The former are interesting because they directly affect performance.  Freelists on the other hand are close to being free (as in beer).

Measuring the freelist usage (or disabling it and then measuring) makes the proposal more complex than necessary and doesn't provide useful information (freelisting is no more interesting to track than saving a value in a static variable).

Another suggestion is to expand the API to provide a way to identify a potential performance killer:  the number of reallocs() than result in a new pointer (because the data moved).

If you use hash table code from another project, be sure to check its licensing.
History
Date User Action Args
2013-10-06 07:42:29rhettingersetrecipients: + rhettinger, amaury.forgeotdarc, belopolsky, vstinner
2013-10-06 07:42:29rhettingersetmessageid: <1381045349.72.0.892338347505.issue18874@psf.upfronthosting.co.za>
2013-10-06 07:42:29rhettingerlinkissue18874 messages
2013-10-06 07:42:29rhettingercreate