Is there any performance difference with ++i vs i += 1 in C#?
Asked 2011-07-31T13:05:29.933
11
i += a should be equivalent to i = i + a.
In the case where a == 1, this is supposedly less efficient as ++i as it involves more accesses to memory; or will the compiler make it exactly the same as ++i?