Hello Andrew,

Sunday, May 18, 2008, 3:42:23 PM, you wrote:

> How much do you want to bet that the C version just reads a chunk of
> data into RAM and then does a simple type-cast? (If I'm not very much 
> mistaken, in C a type-cast is an O(0) operation.)

try unsafeCoerce# for that. or just use hGetArray to read directly
into array of type you need


-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to