On Fri, 2 Jun 2023 13:30:38 GMT, Marius Hanl <mh...@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