Preincrement faster than postincrement in C++ – true? If yes, why is it? [duplicate]

Post-increment usually involves keeping a copy of the previous value around and adds a little extra code. Pre-increment simply does it’s job and gets out of the way. I typically pre-increment unless the semantics would change and post-increment is actually necessary.

Leave a Comment