Here are some questions so that you can test your understanding of the topics in this chapter. You'll find the responses at the end of this book, if you'd like to look them up:
- What is premature optimization?
- What did Donald Knuth really say about it?
- Why do we need performance optimization techniques?
- Which is the worst premature pessimization?
- Why is main memory slow?
- What is ILP, and what has it to do with thread synchronization?
- Is hyperthreading good or bad for performance?
- Why do we still use the likely/unlikely macros in the Linux kernel?
- Is a 64-bit program performance-wise better than a 32-bit program?