Summary
In this chapter, you worked through several iterative improvements of an edit distance calculator for spellchecking, and in the process learned some common techniques for improving the performance of your applications. Optimization in Haskell is a large topic, and there are many techniques that we haven’t touched on in this chapter. Importantly though, the examples in this chapter have introduced you to some of the major concerns that you should keep in mind when looking at improving the performance of your Haskell applications:
-
Use the profiler early and often to identify expensive parts of your program.
-
Address algorithmic inefficiencies before data structures and micro-optimizations.
-
Look at opportunities to avoid doing too many ...
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