Profile Before You Optimise: A Five-Minute Habit
Most “slow” code is not slow where you think it is. Measure first, fix second — here is the five-minute loop, from flame graphs to the number you paste into a pull request.
khallaf
Tip
Every published article tagged “debugging”.
2 articles
Most “slow” code is not slow where you think it is. Measure first, fix second — here is the five-minute loop, from flame graphs to the number you paste into a pull request.
A stack trace is a map, not a verdict. Read it from both ends, find the frame that is yours, and turn the message into a ten-line reproduction.