3 ms·
Fortunately or unfortunately you don’t always get to decide who touches the code, so unless performance is a concern as it is in kernel development optimising l
by andy_ppp 6y ago
Fortunately or unfortunately you don’t always get to decide who touches the code, so unless performance is a concern as it is in kernel development optimising like this in the day job will eventually lead people making mistakes. Basically I say be as explicit and clear as you dare, even at the cost of some CPU cycles.
- saagarjha 6y agoAdding extra dereferences is rarely performant. The example is written this way because it's more elegant, not because it's faster.