Approach to code optimization
You're asked to "optimize this function, it's slow." What do you do before you touch the code?
You're asked to "optimize this function, it's slow." What do you do before you touch the code?
First establish the current numbers and a target with a reproducible benchmark, pin down the bottleneck with a profiler, then change the code, and re-measure with the same benchmark afterward.
Performance and debuggingMultiple choiceIntro
You want to measure app performance as the basis for optimization. Which are correct…
#measurement #profiling
Performance and debuggingShort answerBasics
All you've got is vague feedback that "the app is slow." How do you approach that with…
#profiling
Performance and debuggingShort answerBasics
Someone reports that search results take too long to appear. Instead of printing…
#measurement
Performance and debuggingShort answerExpert
In Time Profiler, the top entries on the scrolling hot path are swift_retain…
#optimization