Re: [Haskell-cafe] Memory problems reading a IntMap from a binary file

2008-08-03 Thread Don Stewart
lutzsteens: > Hi, > > I have IntMap String with about 40,000 entries. After saving it to disk > (via Data.Binary) the file is 3.5 Mb small. However if I load it and > save it back again my program needs 180 MB memory. Is there anything I > do wrong or does the map really need that much memory?

[Haskell-cafe] Memory problems reading a IntMap from a binary file

2008-08-03 Thread Ludger Steens
Hi, I have IntMap String with about 40,000 entries. After saving it to disk (via Data.Binary) the file is 3.5 Mb small. However if I load it and save it back again my program needs 180 MB memory. Is there anything I do wrong or does the map really need that much memory? The (simple) program