[Haskell-cafe] Destructive updates to plain ADTs
Johan Tibell
johan.tibell at gmail.com
Sun Sep 9 11:24:47 CEST 2012
On Sun, Sep 9, 2012 at 2:19 AM, MigMit <miguelimo38 at yandex.ru> wrote:
> Why modify it instead of creating the new one and let the previous tree get garbage collected?
You can avoid a bunch of copying and allocation by modifying the nodes
in-place. See
http://blog.johantibell.com/2012/03/improvements-to-hashmap-and-hashset.html
for some numbers.
-- Johan
More information about the Haskell-Cafe
mailing list