3 ms·
> Using a pure function would obviously be a useless benchmark for locking But isn't that the point? Previously, pure functions would all lock, so you could on
by immibis 1y ago
> Using a pure function would obviously be a useless benchmark for locking
But isn't that the point? Previously, pure functions would all lock, so you could only run one pure function at a time. Now they don't.
- byroot 1y agoI haven’t seriously used Python in over 15 years, but I assume the comparison is against using a preforking server with 1+ process per core. The question is whether 1+ thread per core with GIL free Python perform as well as 1+ process per core with GIL. My understanding is that this global is just a way to demonstrate that the finely grained locking in the GIL free version may make it so that preforking servers may still be more performant.