[Haskell] Writing large n-dim un-boxed array of Int32 quickly?

Rene de Visser rene_de_visser at hotmail.com
Mon Oct 31 03:13:30 EST 2005


I want to write a multi-dimensional unboxed arrary of Int32 to a file. (And 
also read it back later).

What I tried so far is

import NewBinary.Binary

mapM_ (put bin) $ elems array

but this was exceedlying slow.

The array contains about 10 000 000 entries. Any suggestions?

More information about the Haskell mailing list