mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue #26249: Mention PyMem_Malloc() change in What's New in Python 3.6 in the
Optimizations section.
This commit is contained in:
parent
e437a10d15
commit
8153ac8f00
1 changed files with 7 additions and 0 deletions
|
@ -388,6 +388,13 @@ Optimizations
|
|||
* Optimize ``bytes.replace(b'', b'.')`` and ``bytearray.replace(b'', b'.')``:
|
||||
up to 80% faster. (Contributed by Josh Snider in :issue:`26574`).
|
||||
|
||||
* Allocator functions of the :c:func:`PyMem_Malloc` domain
|
||||
(:c:data:`PYMEM_DOMAIN_MEM`) now use the :ref:`pymalloc memory allocator
|
||||
<pymalloc>` instead of :c:func:`malloc` function of the C library. The
|
||||
pymalloc allocator is optimized for objects smaller or equal to 512 bytes
|
||||
with a short lifetime, and use :c:func:`malloc` for larger memory blocks.
|
||||
(Contributed by Victor Stinner in :issue:`26249`).
|
||||
|
||||
|
||||
Build and C API Changes
|
||||
=======================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue