9 Haskell data and code at run time
This chapter covers
- Representing data and code in memory at run time
- Haskell features that affect performance
- Code optimizations done by the compiler
Haskell performance is a tricky story. It may be difficult to predict and explain, and it’s not the easiest thing to achieve in our programs. With functional and other declarative programming languages, code running on actual hardware tends to be much further from code written by a programmer than in the case of imperative languages. One of the consequences of this fact is that a programmer sometimes has a somewhat limited ability to affect performance directly. Although it is considered a task for a compiler to produce the best executable code possible, this ...
Get Haskell in Depth now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.