Closed Blaisorblade closed 9 years ago
The choice between association list and search tree is not trivial. The search tree has faster lookup in general, but the association list has faster insert and more sharing after insert in general and faster lookup for recently bound variables.
I'm investigating this.
I tried it out, but nothing cool happened. See changes in #82.
Time to close this — we are happy with the performance we have and maps never seemed to help.
Control.Monad.Environment
uses an association list instead of aMap
— maybe this could be improved? Profiling to check whether this is a problem would be a first step.