[Haskell-cafe] Haskell performance question

Dan Piponi dpiponi at gmail.com
Fri Nov 9 14:09:14 EST 2007


On Nov 8, 2007 10:28 PM, Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:

> just for curiosity, can you try to manually unroll loop and see
> results?

I don't get any noticeable performance change when I unroll the loop
by 2 by hand. I suspect that on a modern CPU loop unrolling probably
isn't that much of a win. I'm more interested in strength reduction,
especially when computing things like indices into multidimensional
arrays. Anyone know how well ghc performs in this area?
--
Dan


More information about the Haskell-Cafe mailing list