Skip to content

bpo-40602: _Py_hashtable_new() uses PyMem_Malloc()#20046

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:hashtable_alloc
May 12, 2020
Merged

bpo-40602: _Py_hashtable_new() uses PyMem_Malloc()#20046
vstinner merged 1 commit intopython:masterfrom
vstinner:hashtable_alloc

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented May 12, 2020

_Py_hashtable_new() now uses PyMem_Malloc/PyMem_Free allocator by
default, rather than PyMem_RawMalloc/PyMem_RawFree.

PyMem_Malloc is faster than PyMem_RawMalloc for memory blocks smaller
than or equal to 512 bytes.

https://bugs.python.org/issue40602

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants