News for hackers. Stuff that matters.
Re:A fun optimization trick from rsync by toolslive on Monday October 29, 2018 @04:35AM (#18325858)
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.
Re:A fun optimization trick from rsync by ygra on Monday October 29, 2018 @06:17AM (#18326247)
I'm not sure switch performance is a relevant concern for setting the last modification time of a file.