Message238321
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(). |
|
Date |
User |
Action |
Args |
2015-03-17 17:13:13 | vstinner | set | recipients:
+ vstinner, ezio.melotti, mrabarnett, abacabadabacaba |
2015-03-17 17:13:13 | vstinner | set | messageid: <1426612393.63.0.982980909866.issue23690@psf.upfronthosting.co.za> |
2015-03-17 17:13:13 | vstinner | link | issue23690 messages |
2015-03-17 17:13:13 | vstinner | create | |
|