RFR: Fix VirtualFlow performance regression in ListView scrolling
Marius Hanl
mhanl at openjdk.org
Mon Jan 12 16:26:45 UTC 2026
On Mon, 12 Jan 2026 09:56:41 GMT, Huang Xiao <duke at openjdk.org> wrote:
> I forgot to mention that since I'm just a regular user, I couldn't figure out how to become a member
You are an `Author`, so you should be able to login to https://bugs.openjdk.org/issues/?filter=39543.
See also the message from `@bridgekeeper`
> Welcome back youngledo
Without checking your example, simply removing both lines of code is certainly not the right fix. This was implemented to fix problems, so I'm pretty sure this will lead to regressions.
Also note that you should check if applying https://github.com/openjdk/jfx/pull/1945 fixes your problem, as this is an issue that could lead to many unnecessary relayouts right now.
Note that I believe that the performance of the `VirtualFlow` can be improved a lot, but I'm not sure this is the right approach / the right place.
Example: the `removeAll` should not be triggered that often and the pile should not be that big. If it is, we may need to check out why this is first.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/2030#issuecomment-3739399553
More information about the openjfx-dev
mailing list