This benchmark only measures function call overhead, which is important but not the whole story. What kind of figures do you get with a more realistic benchmark?
No idea why my original reply is not visible, nor marked as [dead]...such a weird behavior by HN!
Here's what I have replied to you:
To be honest with you, I am not sure how to answer your question.
What I can say is that when you identify bottlenecks within a project -- whether using Cython or mypyc -- the goal is to improve code performance by optimizing the specific parts that impact the project as a whole.
Naturally, the objective is not to replace the entire codebase (switching from Python to Cython), but rather to use the right tool for the job.
In this instance, that tool is mypyc; it requires no changes to your existing code -- it simply generates a Python module that you can then import into your project.
I hope my answer satisfies you, even just by a bit.
Here's what I have replied to you:
To be honest with you, I am not sure how to answer your question.
What I can say is that when you identify bottlenecks within a project -- whether using Cython or mypyc -- the goal is to improve code performance by optimizing the specific parts that impact the project as a whole.
Naturally, the objective is not to replace the entire codebase (switching from Python to Cython), but rather to use the right tool for the job.
In this instance, that tool is mypyc; it requires no changes to your existing code -- it simply generates a Python module that you can then import into your project.
I hope my answer satisfies you, even just by a bit.