3 ms·
Learning to use a profiler (and using a good profiler) is also pretty key to optimization. It's not always obvious where the bottlenecks are, especially in para
by marginalia_nu 4y ago
Learning to use a profiler (and using a good profiler) is also pretty key to optimization. It's not always obvious where the bottlenecks are, especially in parallel code. Because of Amdahl's law, the code that consumes 90% of the CPU cycles may not be where you should look to make the code faster, sometimes it's that innocent looking 10% segment instead.