Micro-optimization: ++i is faster than i++