[Haskell-beginners] Large tables and GHC.

Sherard D. scdames at gmail.com
Wed Dec 16 23:05:10 EST 2009


Hi,

I have a couple of rather large byte tables that I'd like to use. I 
decided to use them as arrays because I figured such large tables 
wouldn't work well as lists.

table1 = listArray (0, 25599) [...]
table2 = listArray (0, 25599) [...]

This is how my code looks, minus the large tables. However, the problem 
is that the large tables are loaded as a list first, and then converted 
to an array. This is indeed a very big problem, as trying to compile 
with GHC takes an unacceptably long time.

Is there any way I can get around this?


- Sherard


More information about the Beginners mailing list