RFR: 8197991: Selecting many items in a TableView is very slow [v3]

Kevin Rushforth kcr at openjdk.java.net
Fri Dec 17 20:46:26 UTC 2021


On Wed, 24 Nov 2021 14:39:57 GMT, yosbits <duke at 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


More information about the openjfx-dev mailing list