[New-bugs-announce] [issue40602] Move Modules/hashtable.h to Include/internal/pycore_hashtable.h
STINNER Victor
report at bugs.python.org
Mon May 11 20:01:24 EDT 2020
New submission from STINNER Victor <vstinner at python.org>:
Python/mashal.c uses Modules/hashtable.h.
Python/mashal.c indirectly gets Modules/hashtable.c implementation via Modules/_tracemalloc.c which is built as a builtin module.
I propose to make the "hashtable" more standard:
* Move Modules/hashtable.h to Include/internal/pycore_hashtable.h
* Move Modules/hashtable.c to Python/hashtable.c
Attached PR implements this change but also changes the default memory allocator to PyMem_Malloc/PyMem_Free which is faster than PyMem_RawMalloc/PyMem_RawFree (current default) for memory blocks <= 512 bytes.
It remains an internal C API which cannot be used outside CPython.
----------
components: C API
messages: 368685
nosy: vstinner
priority: normal
severity: normal
status: open
title: Move Modules/hashtable.h to Include/internal/pycore_hashtable.h
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40602>
_______________________________________
More information about the New-bugs-announce
mailing list