Closed laurenthuberdeau closed 2 months ago
Before, f(g(x)) used 2 temporary variables:
f(g(x))
t1 = g(x) t2 = f(t1)
But really, we can reuse the same temporary:
t1 = g(x) t1 = f(t1)
This reduces the number of temporary variables used, which slightly increases performance.
Context
Before,
f(g(x))
used 2 temporary variables:But really, we can reuse the same temporary:
This reduces the number of temporary variables used, which slightly increases performance.