2 ms·
> "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 m
by curious_cat_163 2y 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.
- staticautomatic 2y agoLxml frees the GIL internally and iirc the motivation was something like concurrent reads of different portions of large documents.