Donald Bruce Stewart wrote:
> A quick hack up to use Data.ByteString uses a lot less ram, though
> profiling still shows 95% of time spent in the building the Map.

Nice!

>           k n w = Map.insertWith f w 1 n
>           f _ x = let y = x + 1 in y `seq` y

y `seq` y is semantically equivalent to y though. The strictness
would have to be built into insertWith to make this work.

regards,

Bertram
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to