Ask HN: How do I go about optimizing a codebase?

1 points by hahnchen ↗ HN
Say I wanted to improve the performance of a large codebase such as a compiler, runtime, web server, etc.

How do you do this? I guess you can profile it but there’s so much information that the profiler gives and I usually don’t know where to look. How do you know where to look? Are there any books, blogposts that are good to start learning how to do this?

2 comments

[ 2.8 ms ] story [ 18.9 ms ] thread
What type of code base is it? Perhaps we can offer recommeded profiling tools for a particular stack. What are you looking to optimize and how did you identify it? Was it perceptual or something you measured?
Interested in C/C++ codebases. I want to be able to take slow programs and identify where they’re slowing down and how to make them faster at those points