4 ms·
No new race conditions are expected as this work replaces Gil with finer grained performant locks. It still lowers performance of single threaded code some vs n
by Mehdi2277 5y ago
No new race conditions are expected as this work replaces Gil with finer grained performant locks. It still lowers performance of single threaded code some vs no Gil (about 10 percent) but 10 percent drop in single threaded performance is worth considering for multi threading.
The race conditions a Gil program and a no Gil program should have should be same. A Gil is not the only way to keep certain operations safe.
- celeritascelery 5y ago> but 10 percent drop in single threaded performance is worth considering for multi threading. Only if you are writing multithreaded coded. Otherwise it is just a loss.
- Mehdi2277 5y agoIt is trade off. Pure single threaded code is worse in exchange for much better multithreaded code. And the current sentiment in the python dev mailing list looks positive. Previous attempts at Gil removal had much bigger drop in single threaded performance.