jer...@martinfamily.freeserve.co.uk wrote:
"In 1999 Greg Stein created a patch set for the interpreter that
removed the GIL, but added granular locking around sensitive
interpreter operations. This patch set had the direct effect of
speeding up threaded execution, but made single threaded execution two
times slower."
Source:
http://jessenoller.com/2009/02/01/python-threads-and-the-global-interpreter-lock/
That was ten years ago - do you have any idea as to how things have
been progressing in this area since then?
The slowdown may be less severe, but known attempts to replace, rather
than merely remove, GIL slow down single thread execution. Otherwise,
GIL wouild be gone. No one has been willing to maintain a multi-thread
fork/branch.
--
http://mail.python.org/mailman/listinfo/python-list