|
|
|
|
|
by IshKebab
277 days ago
|
|
You totally can identify performance issues by reading code. E.g. spotting accidentally-quadratic, or failing to reserve vectors, or accidental copies in C++. Or in more amateur code (not mine!) using strings to do things that can be done without them (e.g. rounding numbers; yes people do that). It's a lot easier and better to use profiling in general, but that doesn't mean I never see read code and think "hmm that's going to be slow". |
|
I'm not saying you can't spot naive performance pitfalls. But how do you spot cache misses reading the code?