2 ms·
You inspired me to take a look at their code. The autoload module at https://github.com/pyston/pyston/blob/96d5d33186b81f96ce3d9a6e70a07fb231893b6d/pyston/pyst
by simonw 4y ago
You inspired me to take a look at their code.
The autoload module at https://github.com/pyston/pyston/blob/96d5d33186b81f96ce3d9a6e70a07fb231893b6d/pyston/pyston_lite/autoload/pyston_lite_autoload.pth https://github.com/pyston/pyston/blob/96d5d33186b81f96ce3d9a... just calls:
__import__("pyston_lite").enable()
It took some digging, but it looks like that enable() method is defined in the C code here: https://github.com/pyston/pyston/blob/96d5d33186b81f96ce3d9a6e70a07fb231893b6d/Python/aot_ceval.c#L7288 https://github.com/pyston/pyston/blob/96d5d33186b81f96ce3d9a...
It calls jit_start() which I think is here and does more of the interesting work: https://github.com/pyston/pyston/blob/69b190003f14dfd2f6d276f33a23a3715a405bcc/Python/aot_ceval_jit.c#L5018 https://github.com/pyston/pyston/blob/69b190003f14dfd2f6d276...