[Haskell-cafe] Over-allocation

Ketil Malde ketil+haskell at ii.uib.no
Wed Nov 21 08:48:42 EST 2007


Gracjan Polak <gracjanpolak at gmail.com> writes:

>     let entries = IntMap.fromList (map (\(a,b,c) -> (a,c)) (concat p))

Gut reaction: Map is lazy in its values (but probably not the key,
which are checked for order), so you should force the 'c' before
inserting it in the map.  (There's probably a strict fromList or
IntMap somewhere?) 

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell-Cafe mailing list