JDK-8340867 : JavaFX CSS is applied redundantly leading to significant performance
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: jfx11
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2024-09-23
  • Updated: 2024-09-25
Description
A DESCRIPTION OF THE PROBLEM :
When a Node hierarchy is added to the Scene CSS is applied multiple times depending on the depth of the node in the added hierarchy. For every level of depth in the hierarchy the CSS is applied an extra time.

This issue was fixed on JDK1.8 : https://bugs.openjdk.org/browse/JDK-8151756?jql=text%20~%20%22reapplycss%22
But rollback on jdk-10+46 : https://github.com/openjdk/jfx/commit/167f0b993d48315d758f94bf601e3391cba53aba

REGRESSION : Last worked in version 8


FREQUENCY : always
Comments
The changes of JDK-8151756 were reverted in JDK-8183100. This fixed 3 regressions (JDK-8185709, JDK-8183100 and JDK-8168951) caused due to JDK-8151756. JDK-8193445 addresses the performance concern raised in JDK-8151756. It was fixed in jfx14
25-09-2024