[Python-Dev] Using PEP384 Stable ABI for the lzma extension module

Amaury Forgeot d'Arc amauryfa at gmail.com
Thu Oct 6 10:16:19 CEST 2011


Le 6 octobre 2011 10:09, Charles-François Natali <neologix at free.fr> a écrit :
>> But under certain circumstances (if a large block is requested), the
>> allocator uses mmap(), no?
>
> That's right, if the block requested is bigger than mmap_threshold
> (256K by default with glibc, forgetting the sliding window algorithm):
> I'm not sure of what percentage of strings/buffers are concerned in a
> "typical" program.

Most usages of _PyBytes_Resize() are in compression libraries.
256K payloads are not rare in this area.

-- 
Amaury Forgeot d'Arc


More information about the Python-Dev mailing list