4 ms·
The GIL is a conscious trade-off between contention/performance against a simpler code. Without the GIL, you'd still need to use different locking/synchronizat
by csmpltn 3y ago
The GIL is a conscious trade-off between contention/performance against a simpler code.
Without the GIL, you'd still need to use different locking/synchronization mechanisms to ensure thread safety (if required), but they'd be more nuanced and spread over the entire codebase (complicating the backend).