4 ms·
If optimization were pointless I'd be out of a job tomorrow. (My current day job is doing GPU optimization on iterative medical image reconstruction computatio
by einpoklum 3y ago
If optimization were pointless I'd be out of a job tomorrow.
(My current day job is doing GPU optimization on iterative medical image reconstruction computation. But of course, I don't do that in Python.)
- t8sr 3y agoI don't mean optimization is pointless, I mean trying to optimize Python code for CPU performance is pointless. If you're going to spend the time to do that, just rewrite the critical section in a reasonable language, then wrap it in an FFI and use that. Optimize the C code if you need to.