Hacker News new | ask | show | jobs
by curious_cat_163 664 days ago
> "No matter what happens there is going to be a lock occurring. No two PyThreadStates can execute Python bytecode at the same time. However, they can execute multiple C calls at the same time which is why for long running pure C operations extension and embedding developers are encouraged to release the GIL temporarily."

Very exciting! I wonder what the first set of motivating applications are and what kind of performance gains are they expecting.

1 comments

Lxml frees the GIL internally and iirc the motivation was something like concurrent reads of different portions of large documents.