[Haskell-cafe] idea for avoiding temporaries

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Mar 12 11:42:32 EDT 2007

Hello Claus,

Monday, March 12, 2007, 6:03:28 PM, you wrote:

>     readMatrix calls index:  16s
>     readMatrix calls myindex:  9s

> so just calling an in-module copy of the default code for index, with bounds-check,
> is almost as fast as calling unsafeIndex, and almost twice as fast as calling the official
> index..

moreover, look at +RTS -s results. i'm pretty sure that you will find
huge difference in memory allocation :)

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list