Threads, GIL and re.match() performance

Pau Freixes pfreixes at gmail.com
Thu Jun 26 03:20:20 EDT 2008


But Python C-API[1] it's the main base for extent python with C/c++, and
this is not not threadsafe.? I dont understand

[1] http://docs.python.org/api/api.html

On Thu, Jun 26, 2008 at 4:49 AM, Benjamin <musiccomposition at gmail.com>
wrote:

> 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?
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Pau Freixes
Linux GNU/User
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080626/5c368215/attachment.html>


More information about the Python-list mailing list