
12 Mar
2007
12 Mar
'07
11:42 a.m.
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@gmail.com