- Hands-On High Performance Programming with Qt 5
- Marek Krajewski
- 152字
- 2021-07-02 13:54:05
Questions
As in previous chapters, here are some questions so that you can test your understanding of the discussed topics:
- What did Linus say about C++ performance?
- What is an arena?
- What are PGO, FDO, LTO, LTCG, and WPO and what do they have in common?
- Have you looked into the compiler optimization example code from this book? Do you know what scalar replacement of aggregates is now?
- What do you think? How big is the overhead of a function call?
- What is dead stack pinning? Wasn't it a movie? Or was that dead stack walking?
- What is RTTI and is it expensive or not?
- What would change in the mutatingFunc() example discussed in the section about compiler optimization tricks, if it were defined in the same compilation unit?
- What is register pressure? Hint—it has to do with one of a compiler's main tasks, that is, register allocation.