RFR: 8293836: Rendering performance degradation at bottom of TableView with many rows [v2]
Kevin Rushforth
kcr at openjdk.org
Fri Jun 2 13:58:16 UTC 2023
On Fri, 2 Jun 2023 13:30:38 GMT, Marius Hanl <mhanl at openjdk.org> wrote:
>> modules/javafx.controls/src/main/java/javafx/scene/control/skin/VirtualFlow.java line 3083:
>>
>>> 3081: if (itemSizeCache.size() > cellIndex) {
>>> 3082: Double oldSize = itemSizeCache.get(cellIndex);
>>> 3083: double newSize = isVertical() ? cell.getLayoutBounds().getHeight() : cell.getLayoutBounds().getWidth();
>>
>> If we have a fixed cell size set, can we save the call to get the layout bounds here?
>> Since this is also done above in `getOrCreateCellSize` (`getFixedCellSize()`).
>> And the layout bounds are calculated lazily, so this may improve the performance here as well.
>
> @johanvos I still think this should be evaluated.
Perhaps you could file a follow-up JBS issue?
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1098#discussion_r1214414409
More information about the openjfx-dev
mailing list