It is unlikely to make the code faster.
If you add up the number of increments, tests and array fetches in your version and compare them with equivalent counts in the simpler version of the code, I think that you will get the same numbers ... or close enough that it makes very little difference.
Your more complicated version of the code is likely to be harder for a JIT compiler to optimize. For example it is less likely for the JIT compiler to decide that it could unroll the loop.
It is possible that the different memory access pattern could lead to more cache misses, more pipeline stalls and therefore reduced performance.
Note that analysis of the above would need careful and detailed examination of the native code generated by the JIT compiler. Too much work.
I disagree with @VLAZ's comment that this is O(n/2)
vs O(n)
. Firstly, they are the same thing. Secondly, it depends on what you count as a unit of computation. VLAZ seems to be counting loop iterations, but he is missing the fact that the loop body is doing more than twice the work as in the simple version.
Next, this smells of premature optimization. Standard advice is to leave the optimization to the compiler. First get the code function complete and working. Then measure the performance. Only hand optimize your code if the measurement shows that you do have a performance problem. Then use a profiler to figure out the hotspots / performance bottlenecks. Then optimize the bottlenecks, and don't bother optimizing code that has minimal effect on performance. (Do the math!)
Finally, the only way to know for sure is to write a micro-benchmark to compare the performance of the two versions. If you are going to do that:
Don't put print statements in the loop. (The time taken to print N numbers is many orders of magnitude larger than the looping.)
Use an existing benchmarking framework like JMH.
Read: How do I write a correct micro-benchmark in Java? ... to avoid the embarrassing mistakes that people typically make when they doing this kind of thing for the first time.