I don't know enough to have a strong opinion here, but the HS community seems to be firmly behind using foldl' over foldl. However, this library uses foldl in a number of places:
|
go x = foldl k (f x) (gmapQ go x) |
|
else foldl k v (gmapQ go x) |
|
go s x = foldl f r (gmapQ (go s') x) |
This seems likely to be an easy performance win
I don't know enough to have a strong opinion here, but the HS community seems to be firmly behind using
foldl'overfoldl. However, this library usesfoldlin a number of places:syb/src/Data/Generics/Schemes.hs
Line 122 in f741a43
syb/src/Data/Generics/Schemes.hs
Line 132 in f741a43
syb/src/Data/Generics/Schemes.hs
Line 140 in f741a43
syb/src/Data/Generics/Schemes.hs
Line 202 in f741a43
This seems likely to be an easy performance win