Array.ST is not being nice to me

Chris Kuklewicz haskell at list.mightyreason.com
Fri Feb 8 06:33:23 EST 2008


> 
> So my theory now is:
> I do a large number of lookups.

Try using Data.Array.Base.unsafeRead (and maybe ata.Array.Base.unsafeWrite). 
These avoid the bounds checking on the index each time you lookup something in 
the array.


More information about the Glasgow-haskell-users mailing list