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 christian.heimes
Recipients christian.heimes
Date 2021-10-19.11:06:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634641564.68.0.977403045358.issue45522@roundup.psfhosted.org>
In-reply-to
Content
Freelists are an optimization trick to avoid allocation and deallocation of commonly used structures. Currently Python has freelists for frame, tuple, float, list, dict, async generators, and context objects. Small ints are also cached.

For experimentation with alternative memory allocators such as mimalloc, I would like to introduce a way to disable freelists. Tuples's _Py_tuple_state struct has a conditional check on #if PyTuple_MAXSAVESIZE > 0. I propose to add same logic to all other structs.
History
Date User Action Args
2021-10-19 11:06:04christian.heimessetrecipients: + christian.heimes
2021-10-19 11:06:04christian.heimessetmessageid: <1634641564.68.0.977403045358.issue45522@roundup.psfhosted.org>
2021-10-19 11:06:04christian.heimeslinkissue45522 messages
2021-10-19 11:06:04christian.heimescreate