Most performance issues aren’t in your code… and it took me too long to accept that

Posted by OliverPitts@reddit | programming | View on Reddit | 11 comments

For the longest time, every time something was slow, i assumed:

“my code is inefficient”

so i’d start optimizing logic, refactoring functions, etc.

but after working on a few real systems, i’ve noticed a pattern:

a lot of the time the issue is actually:
• network calls
• database queries
• third-party services
• unoptimized assets

not the core code itself

now i try to measure first before touching anything

curious if others had the same realization or is it just me?