2 ms·
That's what I've heard about CPython's GIL, but no one has said why it slows down single threaded performance significantly. Do you happen to know? I understan
by scott_s 17y ago
That's what I've heard about CPython's GIL, but no one has said why it slows down single threaded performance significantly. Do you happen to know?
I understand that finer-grain locking incurs more overhead, but if done well, it shouldn't be a huge performance hit. The Linux kernel at one point was protected by one, big kernel lock, too, and that was successfully relaxed.