4 ms·
Some compilers turn large switches into lookup tables. Using side effects like this however, makes the compiler shy away from this optimisation, and compile it
by toolslive 8y ago
Some compilers turn large switches into lookup tables. Using side effects like this however, makes the compiler shy away from this optimisation, and compile it literally. So it's probably not a good idea anymore.
- ygra 8y agoI'm not sure switch performance is a relevant concern for setting the last modification time of a file.