|
|
|
|
|
by IshKebab
1106 days ago
|
|
It's quite rare for problems to be dominated by hot loops in the same way that matrix multiplication is. Think about something like speeding up a compiler or a web server or a spreadsheet. There's no 50-line function that you can spend a few hours optimising and speed up the whole thing. That's part of the reason why Python programs (except maths heavy stuff like ML) tend to be so slow despite everyone saying "just write your hot code in C". You can't because there is no hot code. |
|
These days Python is being used for everything, even things without hot loops as you note. Yet the advice persists.