On Wed, 24 Nov 2021 14:39:57 GMT, yosbits <d...@openjdk.java.net> wrote:
>> But why? The initialization block of a `for` statement is exactly where >> you'd put loop-scoped variables. > > This change significantly improves performance because the BitSet's size () > method is an O (N) implementation. You may be wondering because it is O (1) > in many other collections. This change looks fine to me. ------------- PR: https://git.openjdk.java.net/jfx/pull/673