At 14.52 +0100 0-09-11, Keith Wansbrough wrote:
>> If it's only a factor two, that is how much computers increase in speed in
>> about a year or so. So it may take longer for you to implement the munging
>> feature than simply waiting out the next computer model. :-)
>
>Yes, but in a year or so everything else will run a factor of two
>faster too - you don't want GHC to run half the speed of everything
>else.
The point is, if your manpower is limited, and because of that it takes you
a year to implement the optimizations, then it will run half the speed
anyway. So it's better to put in the effort in greater portability.
>Yes, but code size affects cache performance and hence speed - quite
>significantly, since the difference in speed between cache and main
>memory is so enormous these days.
It depends, if the code is optimized for speed and because of that becomes
larger, the cache performance or whatever is worked into the equation. --
Hopefully the guys writing the optimizations use a profiler to check they
are right. :-)
Hans Aberg