[Haskell-cafe] sum $ map f xs ... ghc-7.10 performance regression?
rf at rufflewind.com
Tue Dec 15 08:11:27 UTC 2015
On Tue, Dec 15, 2015 at 1:15 AM, Thomas Koster <tkoster at gmail.com> wrote:
> Phil, I think that was true in 7.8, but if I'm reading the haddocks
> correctly, Data.List.sum = Data.Foldable.sum in 7.10, and
> Data.Foldable.sum uses foldMap/foldr.
According to the source code for base-4.8 (GHC 7.10), sum is
specialized to GHC.List.sum for lists.
More information about the Haskell-Cafe