On Fri, 20 Mar 2026 19:56:14 GMT, Philemon Hilscher <[email protected]> wrote:
> The problem was caused, because the items were added individually instead of > batched. Here is a performance comparison created with a profiler. > > | Before | After | > | --- | --- | > | <img width="912" height="489" alt="image" > src="https://github.com/user-attachments/assets/794314ef-09d6-49e1-bbbe-d2f1a5c97cf2" > />|<img width="922" height="497" alt="Screenshot 2026-03-20 202806" > src="https://github.com/user-attachments/assets/e3a38fde-97dc-4889-a229-3539787c60e9" > />| > > The tests added here back up the functionality of the choice box itself since > this is just a performance improvement. This pull request has now been integrated. Changeset: 902b8e82 Author: Philemon Hilscher <[email protected]> Committer: Andy Goryachev <[email protected]> URL: https://git.openjdk.org/jfx/commit/902b8e82f259852f8b94587342af50b1e94a1de0 Stats: 153 lines in 2 files changed: 116 ins; 13 del; 24 mod 8303060: ChoiceBox: adding ~1000 items takes a long time Reviewed-by: angorya, mhanl ------------- PR: https://git.openjdk.org/jfx/pull/2118
