readArray is faster than unsafeRead

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed May 30 01:57:20 EDT 2007


Hello Scott,

Wednesday, May 30, 2007, 1:42:22 AM, you wrote:

> I've included your implementation for comparison, as well as a simple
> pure matrix multiplication function, but I'm having trouble tracking
> them down in the profiling. I think all of their cycles are being
> counted under main, but I'm not sure how to stop this.

this may be due to inlining. if you stop inlining, things will start
count properly but perform much slower :)


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



More information about the Glasgow-haskell-users mailing list