Threads, GIL and re.match() performance

Benjamin musiccomposition at gmail.com
Wed Jun 25 22:49:02 EDT 2008


On Jun 25, 9:05 am, Mirko Dziadzka <mirko.dziad... at gmail.com> wrote:
>
> 1) Is there a reason for this?

I think it is because the Python re library uses the Python C-API
which is not threadsafe.
> 2) Is the regex library not thread-safe?
> 3) Is it possible, to release the GIL in re.match() to
>    get more performance?




More information about the Python-list mailing list