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.