At least the server-compiler will unroll this loop.
I also played arround with some manual unrolling some time ago, and some other low-level optimizations coded directly by hand but this only confused hotspot - and made the code actually run slower! So don't worry ... hotspot (the jit-compiler used/included in Sun-Java) will do absolute fine in these situations ^^
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.