This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients abacabadabacaba, ezio.melotti, mrabarnett, vstinner
Date 2015-03-17.17:13:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426612393.63.0.982980909866.issue23690@psf.upfronthosting.co.za>
In-reply-to
Content
Supporting to release the GIL would require to redesign the _sre module.

For example, the getstring() gets a "view" of a Python string, it doesn't copy the string. So we must hold the GIL, otherwise the Python string can be modified by other threads. Copying a very long string may be slower than just match the pattern :-/

During the pattern matching, other Python functions are called, these functions require the GIL to be hold. Example: PyObject_Malloc().
History
Date User Action Args
2015-03-17 17:13:13vstinnersetrecipients: + vstinner, ezio.melotti, mrabarnett, abacabadabacaba
2015-03-17 17:13:13vstinnersetmessageid: <1426612393.63.0.982980909866.issue23690@psf.upfronthosting.co.za>
2015-03-17 17:13:13vstinnerlinkissue23690 messages
2015-03-17 17:13:13vstinnercreate