3 ms·
>could you clarify what you mean by "eliminate" here. He's talking about a common compiler optimization: https://en.wikipedia.org/wiki/Dead_code_elimination ht
by sbierwagen 9y ago
>could you clarify what you mean by "eliminate" here.
He's talking about a common compiler optimization: https://en.wikipedia.org/wiki/Dead_code_elimination https://en.wikipedia.org/wiki/Dead_code_elimination
Some compilers are smart enough to not run code that doesn't have any side effects. (Running a function a million times in a row but never doing anything with the results)
Hopefully golang bench is smart enough to not be that smart.
- agnivade 9y agoGot it. Thanks ! > Hopefully golang bench is smart enough to not be that smart. Yes, that seems to be true.