
6 Sep
2006
6 Sep
'06
8:50 a.m.
Hallo,
On 9/6/06, Lennart Augustsson
Furthermore, doing that optimization (common subexpression elimination) can lead to space leaks. So you should not count on the compiler doing it. Besides, I often find it more readable and less error prone to name a common subexpression; only one place to change when you need to change the call.
So there is no benefits from the "functions have no side-effects" property, performance-wise. Pity. -- -alex http://www.ventonegro.org/