[Haskell-cafe] API for reading a big binary file

Marc Weber marco-oweber at gmx.de
Thu Dec 21 19:40:25 EST 2006


On Thu, Dec 21, 2006 at 01:47:48PM -0800, Ranjan Bagchi wrote:
> Is there a fast way to do this using ghc?  I can extract fields by  
> using a ByteString, but I may not be using it fast enough:  I've had  
> to write my own routines to extract ints, longs and doubles.
> 
> The other option is to write the loading code largely in C, but I'm  
> not clear how to write a data type which maps well to a C struct.

I'm not sure how fast it is, but NewBinary might fit you needs?
Hopefully this the most current link http://j.mongers.org/pub/haskell/NewBinary/

Marc


More information about the Haskell-Cafe mailing list