[Haskell-cafe] cost of modules

Jules Bean jules at jellybean.co.uk
Thu Mar 29 10:42:22 EDT 2007


Fawzi Mohamed wrote:
> good to know, and very important when benchmarking various algorithms:
> commenting out a variant is better as having it as separate function....

Yes, but don't get over-paranoid. The 'overhead' of calling as opposed 
to inlining is relatively small, and only matters if the function 
concerned is being called many many times in your inner loop.

Jules


More information about the Haskell-Cafe mailing list