4 ms·
Or you could start with mypyc [1] first from mypy and if the results do not please you, then you can use Cython; some folks don't want to learn yet another prog
by stefanos82 2y ago
Or you could start with mypyc [1] first from mypy and if the results do not please you, then you can use Cython; some folks don't want to learn yet another programming syntax, even though it's Pythonic enough to learn it in a rather short period of time, but still...
https://github.com/python/mypy https://github.com/python/mypy
- kevin_thibedeau 2y agoCython can speed up plain Python code. It bypasses the interpreter for everything that is PyObject-based.
- olejorgenb 2y ago(https://github.com/mypyc/mypyc https://github.com/mypyc/mypyc) That's cool! > Mypyc compiles Python modules to C extensions. It uses standard Python type hints to generate fast code. Mypyc uses mypy to perform type checking and type inference. > > Mypyc can compile anything from one module to an entire codebase. The mypy project has been using mypyc to compile mypy since 2019, giving it a 4x performance boost over regular Python.