[issue36051] Drop the GIL during large bytes.join operations?

Inada Naoki report at bugs.python.org
Sun Dec 22 19:30:21 EST 2019


Inada Naoki <songofacandy at gmail.com> added the comment:

https://github.com/python/cpython/blob/068768faf6b82478de239d7ab903dfb249ad96a4/Objects/stringlib/join.h#L105-L126

It seems we can release GIL during iterating the buffer array.
Even though there is no one big chunk, it would be beneficial if the output size is large enough (8MB+?).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36051>
_______________________________________


More information about the Python-bugs-list mailing list