3 ms·
While technically correct, it's not as bad as explained here. They don't assume they can manipulate global state. They are guaranteed that it's right because na
by viraptor 11y ago
While technically correct, it's not as bad as explained here. They don't assume they can manipulate global state. They are guaranteed that it's right because native calls happen with GIL in place. That's an existing and real contract. If you don't want the lock in your library, you can release it. But your native code will always start in GIL-locked state.