Re:Pyston v2: Faster Python
by jashmatthews on Wednesday October 28, 2020 @04:45PM
(#24923934)
Direct threading is in here https://github.com/python/cpython/blob/0564aafb71a153dd0aca4...
ha! you're right. so some optimizations did happen while I wasn't looking ;)
Re:Pyston v2: Faster Python
by FartyMcFarter on Wednesday October 28, 2020 @07:48PM
(#24925510)
> no threading,
CPython does use threads (on Linux, it spawns one pthread per Python thread). However it also has a lock (the infamous GIL) that prevents those threads from interpreting Python code simultaneously.
Not that. https://en.wikipedia.org/wiki/Threaded_code
It's an interpreter implementation technique.
https://github.com/python/cpython/blob/master/Python/ceval.c...