Comment

Comment by stefanos82

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.

parent stefanos82 2 days ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton