4 ms·
The language and operating system in use will have a big influence on this- what are they? E.g. for C programs I use sampling-based profiling (like Mac makes s
by an1sotropy 4y ago
The language and operating system in use will have a big influence on this- what are they?
E.g. for C programs I use sampling-based profiling (like Mac makes super easy with the “Time Profiler” Instrument) to find the bottleneck(s) and then drill down to see associated code sections. Different languages and OSs have different tools for identifying bottlenecks.
If performance is network-bound, that’s a very different set of considerations (with which I have no experience)
- cwaffles 4y agoThis would be for linux applications built with C++/Rust. Performance is mainly CPU bound currently due to small packet sizes
- an1sotropy 4y agoI have less experience optimizing on Linux, but learn about profilers there (e.g. http://euccas.github.io/blog/20170827/cpu-profiling-tools-on-linux.html http://euccas.github.io/blog/20170827/cpu-profiling-tools-on... ) and remember that Amdahl’s law suggests focusing on one bottleneck at a time. But sometimes fixing a bottleneck means not just improving code in the bottleneck, but also how and when other code gets to the bottleneck.