In article <[EMAIL PROTECTED]>,
Mirko Dziadzka  <[EMAIL PROTECTED]> wrote:
>
>I understand that the C implementation of Python use a global interpreter
>lock to avoid problems, so doing CPU bound tasks in multiple threads
>will not result in better performance on multi-CPU systems.
>
>However, I assumed that calls to (thread safe) C Library functions
>release the global interpreter lock.

Generally speaking that only applies to I/O calls.

>Today I checked the performance of some slow re.match() calls and found,
>that the do not run in parallel on a multi-CPU system. 
>
>1) Is there a reason for this? 
>2) Is the regex library not thread-safe? 
>3) Is it possible, to release the GIL in re.match() to 
>   get more performance?

Theoretically possible, but the usual rule applies: patches welcome
-- 
Aahz ([EMAIL PROTECTED])           <*>         http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to