Get Thinking
A detailed discussion of these questions can be found in the "Appendix A" section on page 510.
Mull It Over
Optimization is a process of making trade-offs—sacrificing one quality of code for another desirable quality. Describe the kinds of trade-offs that lead to a performance increase.
Look at each of the optimization alternatives listed in "Why Not Optimize?" on page 202. Describe what trade-offs are being made, if any.
Explain these terms and their exact relationship:
Performance
Efficiency
Optimized
What are the likely bottlenecks in a slow program?
How can you avoid the need to optimize? What methods will prevent you from writing inefficient code?
How does the presence of multiple threads affect optimization?
Why don’t we write efficient ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access