[Haskell-cafe] Re: Constructing Data.Map from ByteString

Adam Langley agl at imperialviolet.org
Tue Mar 11 19:51:27 EDT 2008


On Tue, Mar 11, 2008 at 4:13 AM, Dave Tapley <dave.a.tapley at gmail.com> wrote:
>  I've upgraded to bytestring-0.9.0.5 from Darcs, no improvement.
>  Also this morning I tried using Data.HashMap with Bytestring's readInt
>  and HashMap's hashInt.. The result was a Stack space overflow :(

Map is probably a better choice than HashMap. Exactly how large is the
input? Like I said, I got about 2x bloat (measured by RSS), maybe you
can send a fuller example code?


AGL

-- 
Adam Langley agl at imperialviolet.org http://www.imperialviolet.org


More information about the Haskell-Cafe mailing list