This brings us to the book's conclusion. Hopefully, you have enjoyed the ride. To reiterate, perhaps, the most important tip in this book, always make sure that you verify the source of the performance bottleneck via benchmarking before making a single change. The last thing we want to waste time on is chasing ghosts in the codebase, when 5 minutes of profiler testing can save us an entire day of work. In a lot of cases, the solution requires a cost-benefit analysis to determine whether we're not sacrificing too much in any other area at the risk of adding further bottlenecks. Make sure that you have a reasonable understanding of the root cause of the bottleneck to avoid putting other performance metrics at risk. To also reiterate the second most important tip in this book, always profile and test after making changes to ensure that it had the intended effect.
Performance enhancement is all about problem solving, which can be a lot of fun since due to the complexity of modern computer...