python extension, -pthreads and speed

Rolf Magnus ramagnus at t-online.de
Sat Apr 24 19:57:32 EDT 2004


Pedro Rodriguez wrote:

> If your extension use IOs (fgets, sprintf...) or others standard
> library calls, they may be affected by the fact that Python is build
> with multithreading enabled, on so all those API start using mutexes
> to be thread safe, thus the extract cost.

Another candidate for such slowdowns is malloc.




More information about the Python-list mailing list