I have been trying to find the article I read years ago about smart optimizations that turned out to make performance worse.
I haven't done C++ for ages, at least at a decent level, but I'm sure of one thing: don't try to be smart if you don't know how the compiler works. It can turn against...