4 ms·
mypy is compiled using mypyc. It does not run as Python code.
by davidfstr 1y ago
mypy is compiled using mypyc. It does not run as Python code.
- mzl 1y agoThe semantics of Python makes it problematic to run at speed, it is not just about interpreted vs compiled code. Give the high levels of dynamic behaviors that are allowed, a Jit (like pypy) has a higher chance of getting decent performance if the code has an underlying behavior that can be extracted.
- Sinidir 1y agomypy is also written in a style conducive to speed ups when compiling with mypyc