Why can ++i be faster than i++?
Anónimo
i++ stores a temporary variable, which adds weight if you don't need it. However, this is generally negligent in terms of actual performance, but there's no reason to get in the habit of unnecessarily using i++ when ++i will do.