[Haskell-cafe] Performance: MD5

Bulat Ziganshin bulat.ziganshin at gmail.com
Sun May 18 07:52:12 EDT 2008

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:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list