On Mon, 22 Nov 2021 15:55:03 GMT, Abhinay Agarwal <d...@openjdk.java.net> wrote:

>> the for-loop is certainly faster and would allocate less memory - i find the 
>> `for(int i = 0, max = size())`-style a bit odd
>
> I could move `int max = size();` outside the loop

But why? The initialization block of a `for` statement is exactly where you'd 
put loop-scoped variables.

-------------

PR: https://git.openjdk.java.net/jfx/pull/673

Reply via email to