Sorry, something went wrong.
There was a problem hiding this comment.
LGTM.
But I'm curious, why removing it? The free list is not longer faster than always calling PyMem_Malloc/PyMem_Free?
Previously, PyMem_Malloc/PyMem_Free called libc malloc/free. But now it's the pymalloc memory allocator which is faster than libc allocator for small memory allocation (up to 512 bytes). Maybe pymalloc made the free list less interesting?
Sorry, something went wrong.
|
Deques only call the allocator once every 64 updates, so the average cost is small. |
Sorry, something went wrong.
https://bugs.python.org/issue40521