[Haskell-cafe] possible memory leak in uvector 0.1.0.3
Bulat Ziganshin
bulat.ziganshin at gmail.com
Tue Mar 3 09:57:55 EST 2009
Hello Daniel,
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.
> Maybe
> (size m) `seq` return m
> would help?
i suggest
return $! length v
return $! size m
(if size really scans tree instead of using stored value :)
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list