[Haskell-cafe] possible memory leak in uvector 0.1.0.3
bulat.ziganshin at gmail.com
Tue Mar 3 09:57:55 EST 2009
Tuesday, March 3, 2009, 5:47:36 PM, you wrote:
>> let v = map singleton' $ ratings contents
>> let m = foldl1' (unionWith appendU) v
>> v `seq` return $! m
> The (v `seq` ) is completely useless.
> (size m) `seq` return m
> would help?
return $! length v
return $! size m
(if size really scans tree instead of using stored value :)
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe