4 ms·
> Since this is Python we don't have the luxury of using threads to perform CPU-bound work (because of the Global Interpreter Lock). You can have it with threa
by ghostwriter 7y ago
> Since this is Python we don't have the luxury of using threads to perform CPU-bound work (because of the Global Interpreter Lock).
You can have it with threads if the CPU-bound work is done inside a C extension - https://docs.python.org/3/c-api/init.html#releasing-the-gil-from-extension-code https://docs.python.org/3/c-api/init.html#releasing-the-gil-...