This might be a silly question to ask, but this kind of optimization is sometimes boost performance of your application. Here I am asking specifically for C++, because the way C++ compile code is a lot different that c# or Java.
The question is which one performs better, if variable i is int.
i > -1
i >= 0
I am looking for performance in terms of memory block or registers required and CPU cycles required for both conditions.
Thanks in advance.
i
is an integer or not! – Lactoprotein