[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: RFR: 8197991: Selecting many items in a TableView is very slow [v3]
From:       yosbits <duke () openjdk ! java ! net>
Date:       2021-11-26 21:05:07
Message-ID: p0pPoa09MWRxoBYObTicVCigNr_Kc2m1WK9th31XZ_I=.af92d7a3-be10-4d24-a948-e521f6aa7bfb () github ! com
[Download RAW message or body]

On Fri, 26 Nov 2021 19:44:14 GMT, Abhinay Agarwal <duke@openjdk.java.net> wrote:

> > tests/manual/controls/SelectTableViewTest.java line 19:
> > 
> > > 17:     //  final int ROW_COUNT = 80_000;
> > > 18:     //  final int ROW_COUNT = 50_000;
> > > 19:     //  final int ROW_COUNT = 8_000;
> > 
> > The number is meaningful because it is the number of data I used to show the \
> > improvement effect in the original PR. 
> > Reference value of the number of data that can be handled within 3 seconds of \
> > processing time (before-> after) 
> > TableView
> > 
> > selectAll: 8_000-> 700_000
> > selectRange: 7_000-> 50_000
> > 
> > 
> > 
> > 
> > 
> > ``` Java
> > public class SelectTableViewTest extends Application {
> > 
> > 	final int ROW_COUNT = 700_000;
> > //	final int ROW_COUNT = 80_000;
> > //	final int ROW_COUNT = 50_000;
> > //	final int ROW_COUNT = 8_000;
> > 	final int COL_COUNT = 3;
> 
> I reduced ROW_COUNT from 700_000 to 70_000 as the tests were taking a few seconds \
> to run on my machine. I have reverted these now. Nevertheless, time taken to run a \
> test have a number of variables. Depending on the machine the tests are run, it may \
> not necessarily always take 3 seconds :)

The processing time changes for each operation.
You probably adapted to the slow operation (selectRange).
You can comment it out, but 700_000 is for selectAll. Although it depends on the \
device, the environment I have confirmed is his MacBook Pro in 2016.

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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic