Compiling data

Christian Maeder maeder at
Thu May 27 06:34:15 EDT 2004

We have put a large list in double quotes and used "read" to convert the 
large literal string (too big for hugs, though) into the needed list. 
This reduced compile time drastically, but I don't know how the runtime 
changed. (Also errors can only occur at runtime.)


Ketil Malde wrote:
> Hi,
> I've recently tried to compile some data into my program, and suddenly
> I realize why people tend to complain about the speed of GHC.
> For a benchmark, I'd like to include a bit of data in the form of a
> list of integer matrices (i.e. [[[Int]]]).  While I have about 10000 of
> them, sized about twenty square, even 100 of them takes extremely
> long to compile.  Is there a trick to make this faster?
> (For short lists (1-8 matrices), time seems to scale linarly, but the
> 100-matrix took much longer than expected from a simple extrapolation)
> Also, it takes a long time before any error is produced, it'd be nice
> if syntactical problems were reported as quickly as possible (perhaps
> they are?)
> -kzm

More information about the Glasgow-haskell-users mailing list