3 ms·
In my experience it is worthwhile to first try and improve the performance in Python. It's easier to play around with different ideas in Python, and things like
by adrianN 11y ago
In my experience it is worthwhile to first try and improve the performance in Python. It's easier to play around with different ideas in Python, and things like numpy quite often enable you to get "fast enough". Only if that is not enough should you consider writing a C extension.
- ryan_sb 11y agoPython makes it easy to do lots of things -- including very inefficient ones. Profiling your existing stuff and trying to optimize in pure Python often gets you pretty far.