So if I take ordinary (no math to speak of) and it it No obvious pattern on if...
So if I take ordinary #python (no math to speak of) and
#cythonize it
#mypyc it
No obvious pattern on if it is faster or not. I don't know where the 20% to 200x rule of thumb came from (that I've seen in various conference talks)
Self-replies
I need to do more experiments but each experiment requires
- three code bases
- two different setup.py, pyproject.toml
- removing things cython/mypyc can't compile (and they differ)
- making a decision about further cython optimizations (taking the code in a direction mypyc can't follow)
Running mypyc does pick up more type confusions than mypy alone, although both mypy and mypyc push you to patterns that are compilable/less dynamic.