Message404289
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. |
|
Date |
User |
Action |
Args |
2021-10-19 11:06:04 | christian.heimes | set | recipients:
+ christian.heimes |
2021-10-19 11:06:04 | christian.heimes | set | messageid: <1634641564.68.0.977403045358.issue45522@roundup.psfhosted.org> |
2021-10-19 11:06:04 | christian.heimes | link | issue45522 messages |
2021-10-19 11:06:04 | christian.heimes | create | |
|