When we code, it happens quite often that we are sunk into optimization details. We often have to focus on dealing with concurrency, performance/benchmark measurements, and profiling other elements such as memory consumptions. This focus on concurrency and performance/benchmark measurements is, of course, a big and important element of our code, especially concurrency. This topic has been described extensively in the previous two chapters: Chapter 4, Introduction to Concurrency in F# and Chapter 5, Advanced Concurrency Support in F#.
There are other elements in F# to be recognized as optimization opportunities, the language constructs that are commonly used in code and also advanced language constructs such as computation workflow. Language constructs, including the combination of semantics and syntax, are crucial too because we are directly dealing with them as we code. This chapter is dedicated to identifying performance optimizations...