On Sat, 7 Mar 2026 05:45:24 GMT, chuckyschluz <[email protected]> wrote:
> Fixes [JDK-8311505](https://bugs.openjdk.org/browse/JDK-8311505) > > This PR uses `set(int index, int end, boolean isSet)` in > `javafx.scene.control.MultipleSelectionModelBase` to avoid excessive calls to > `indexOf` when deselecting continuous ranges of rows. > > Benchmarks produced with the test application provided here: > https://bugs.openjdk.org/browse/JDK-8311505 > > Before (mainline): > > > Select item count 500000 took 724 > Deselect item count 500000 took 73103 > > > After (this PR): > > > Select item count 500000 took 249 > Deselect item count 500000 took 88 > > > Passes all unit tests: > > `.\gradlew.bat :controls:test` > `.\gradlew.bat :systemTests:test` > > Thank you! This is related to [8202066](https://bugs.openjdk.org/browse/JDK-8202066) ------------- PR Comment: https://git.openjdk.org/jfx/pull/2100#issuecomment-4058865201
