Hacker News new | ask | show | jobs
by immibis 243 days 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.

1 comments

I 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.