Re:A 100x speedup with unsafe Python
by jandrese on Monday May 06, 2024 @09:41PM
(#40281384)
Seems to me if you could do most of the work in Python and then just make the critical loop unsafe and 100x faster then that would certainly have some appeal.
[ Parent
| on HN ]
Plenty of people would gladly not have to learn another language (especially C).
You could also benefit from testing blocks of code with safety enabled to have more confidence when safety is removed.
It was explained pretty well in the blog: Installing the OpenCV python package is easy, fast and painless as long as you're happy with the default binary. Building OpenCV from source to get it into a C/C++ program can quickly turn into a multi-hour adventure, if you're not familiar with building sizeable C++ projects.