Open doyougnu opened 2 years ago
some obvious examples are:
unordered-containers
if you need to index by any kind of complicated object and are using Data.Map
foldMap
or Data.IntMap.compose
. For example, if you are folding a lot then picking a performent folding structure is better than a worse performing one. using a DList
and avoiding WriterT
: https://github.com/haskell/haddock/pull/1543
https://www.joachim-breitner.de/blog/761-Faster_Winter_3__Difference_Lists
This is domain specific, but basically choose the right data structures for your task. This is probably one of the lightest weight, simplest chapters. Perhaps it belongs to a
General Guidelines
chapter.