A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-October/113855.html below:

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

[Python-Dev] Using PEP384 Stable ABI for the lzma extension module [Python-Dev] Using PEP384 Stable ABI for the lzma extension module"Martin v. Löwis" martin at v.loewis.de
Wed Oct 5 18:12:54 CEST 2011
>> Not sure what you are using it for. If you need to extend the buffer
>> in case it is too small, there is absolutely no way this could work
>> without copies in the general case because of how computers use
>> address space. Even _PyBytes_Resize will copy the data.
>
> That's not a given. Depending on the memory allocator, a copy can be
> avoided. That's why the "str += str" hack is much more efficient under
> Linux than Windows, AFAIK.

Even Linux will have to copy a block on realloc in certain cases, no?

Regards,
Martin

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4