3 ms·
In hot code Avoid const I wonder why?
by pornel 15y ago
In hot code
Avoid const
I wonder why?
- mraleph 15y agoBecause: 1) const is not supported by an optimized compiler and any function that declares or references const variable will not be optimized; 2) const is slower than var because it has a more complicated semantics;