Improve Int{Map,Set}.fold*.
authorMilan Straka <fox@ucw.cz>
Sun, 4 Mar 2012 15:24:52 +0000 (16:24 +0100)
committerMilan Straka <fox@ucw.cz>
Sun, 4 Mar 2012 15:38:12 +0000 (16:38 +0100)
commitc0e28dc571cc0a4bcfab6fd81458758e6061703b
tree5a6eea37dc5de356b5a650c5888b833f58d81028
parent5d742ef1e4a26ae1c8c9bfa5b2c76031108dc9fb
Improve Int{Map,Set}.fold*.

Improve Int{Map,Set}.fold* defitions to be inlinable with
two arguments only.

Otherwise GHC inlined toAscList, toDescList _and after that_ inlined
the fold, resulting in useless code growth.
Data/IntMap/Base.hs
Data/IntSet.hs