RFR: 8345188: Support tree-structural pseudo-classes [v10]

Michael Strauß mstrauss at openjdk.org
Thu Jan 9 21:54:50 UTC 2025


On Thu, 9 Jan 2025 21:51:05 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:

> I'm unsure how that would prevent issues. It will then still require setting a pseudo class on all elements in the list, in addition to losing all other optimizations when the list is only shifted by a few elements...

The performance hit is caused by the quadratic time complexity when you call `set(0, child)` in a loop. If you call `setAll(children)` instead, the time complexity is linear.

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

PR Comment: https://git.openjdk.org/jfx/pull/1652#issuecomment-2581313363


More information about the openjfx-dev mailing list