3 ms·
As an interesting aside, you can nearly double the speed of your Java loop by unrolling it a few times. (at least it did that for me in JDK 7)
by zinxq 13y ago
As an interesting aside, you can nearly double the speed of your Java loop by unrolling it a few times. (at least it did that for me in JDK 7)
- w01fe 13y agoHuh, cool! I kinda assumed the JIT already took care of this sort of low-hanging fruit, we'll test this out and if it works include it in the next version of hiphip.
- pkolaczk 13y agoJIT in fact does pretty aggressive loop unrolling, however probably there might be some edge cases where it doesn't.