4 ms·
This sounds awesome. What does it do?
by jd115 6y ago
This sounds awesome.
What does it do?
- lvass 6y agoIt compiles type-annotated Python to C
- optimalsolver 6y agoDoes the resulting code run as fast as native C?
- sitkack 6y ago> Mypyc is a compiler that compiles mypy-annotated, statically typed Python modules into CPython C extensions. Currently our primary focus is on making mypy faster through compilation -- the default mypy wheels are compiled with mypyc. Compiled mypy is about 4x faster than without compilation. My wager is that it does not. It may if you have math intensive code, but if you have an algorithm that touches lots of python built in datatypes, access to those types will be the bottleneck.