]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40602: _Py_hashtable_new() uses PyMem_Malloc() (GH-20046)
authorVictor Stinner <vstinner@python.org>
Tue, 12 May 2020 01:07:40 +0000 (03:07 +0200)
committerGitHub <noreply@github.com>
Tue, 12 May 2020 01:07:40 +0000 (03:07 +0200)
commitd0919f0d6bb757b6bcfd7b2e15656d318c9d5cd9
tree86586376ea6ad9d475d4e52c881cdafe808d1bbb
parentb617993b7c0b0f6f679ef7003a62d0318b6d6af9
bpo-40602: _Py_hashtable_new() uses PyMem_Malloc() (GH-20046)

_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.
Python/hashtable.c