Re: [Haskell-cafe] Profiling slow multiplication of elements read from vector

2012-12-12 Thread Richard Janis Beckert
Hey! Thanks a lot for your reply! > Disclaimer: I am compiling GHC 7.6.1-rc1 while testing this, so my > measurements might be unreliable. Best try it out yourself. > > Also, this blind-stab-optimization is /not/ best practice, I just > enjoyed fiddling around. What /is/ best practice in regards

[Haskell-cafe] Profiling slow multiplication of elements read from vector

2012-12-11 Thread Richard Janis Beckert
Hello everybody! For testing purposes, I punched down a small program which... + puts 2^n elements into an unmutable vector (fromList); + generates a random index in the vector (using random-mersenne); + reads the value at the index i and at i+{-2,-1,1,2} and makes product of these values (maki