[Haskell-cafe] is 256M RAM insufficient for a 20 million element Int/Int map?

Don Stewart dons at galois.com
Sat Oct 18 17:25:54 EDT 2008

> {-# LANGUAGE BangPatterns #-}
> import qualified Data.Map as M
> import Debug.Trace
> {-
> I'm trying to run a HAppS web site with a large amount of data: stress
> testing happstutorial.com.
> Well, 20 million records doesn't sound that large by today's
> standards, but anyway that's my goal for now.
> I have a standard Data.Map.Map as the base structure for one of my
> macid data tables (jobs), but I noticed something
> that is probably causing problems for me.
> Even a simple 20 million record with int/int key values causes an out
> of memory error for me in ghci,

Int keys, Int values eh?

Does using IntMap help? If not, trying using a UArray or hash structure?

-- Don

More information about the Haskell-Cafe mailing list