Performance is one of the key drivers for choosing C++ as a programming language for a project. The time has come to discuss how we can improve performance when we're structuring code in a functional style.
While performance is a huge topic that we obviously can't completely cover in one chapter, we will look at key ideas for improving performance, how purely functional languages optimize performance, and how to translate these optimizations into C++.
The following topics will be covered in this chapter:
- A process for delivering performance
- How to use parallel/async to improve performance
- Understanding what tail recursion is and how to activate it
- How to improve memory consumption when using functional constructs
- Functional asynchronous code