Re: [External] : Re: Preload fxml to avoid slow show()

2023-08-26 Thread Davide Perini
tion (using VisualVM or a similar tool), to see where the bulk of memory consumption is? -andy *From: *Davide Perini *Date: *Friday, August 25, 2023 at 16:16 *To: *Andy Goryachev , openjfx-dev@openjdk.org *Subject: *Re: [External] : Re: Preload fxml to avoid slow show() I tried it, 99% of

Re: [External] : Re: Preload fxml to avoid slow show()

2023-08-25 Thread Andy Goryachev
, 2023 at 16:16 To: Andy Goryachev , openjfx-dev@openjdk.org Subject: Re: [External] : Re: Preload fxml to avoid slow show() I tried it, 99% of the heavy lift comes from FXML load. I have 80Kb of FXML files, nothing particularly big, I measured the laoding time on a 13900K CPU and it requires 1.8s

Re: [External] : Re: Preload fxml to avoid slow show()

2023-08-25 Thread Davide Perini
*Friday, August 25, 2023 at 14:31 *To: *Andy Goryachev , openjfx-dev@openjdk.org *Subject: *[External] : Re: Preload fxml to avoid slow show() My tab pane is very complex with a lot of tabs, having an FXML is very welcomed. Thanks Davide Il 25/08/2023 16:45, Andy Goryachev ha scritto:

Re: [External] : Re: Preload fxml to avoid slow show()

2023-08-25 Thread Andy Goryachev
Another suggestion might be to load tabs lazily. I don't think FXML "pre-loading" is possible. -andy From: Davide Perini Date: Friday, August 25, 2023 at 14:31 To: Andy Goryachev , openjfx-dev@openjdk.org Subject: [External] : Re: Preload fxml to avoid slow show() My t

Re: Preload fxml to avoid slow show()

2023-08-25 Thread Davide Perini
My tab pane is very complex with a lot of tabs, having an FXML is very welcomed. Thanks Davide Il 25/08/2023 16:45, Andy Goryachev ha scritto: You can try creating the scene graph programmatically, thus avoiding FXML entirely. -andy *From: *openjfx-dev on behalf of Davide Perini *Date:

Re: Preload fxml to avoid slow show()

2023-08-25 Thread Andy Goryachev
You can try creating the scene graph programmatically, thus avoiding FXML entirely. -andy From: openjfx-dev on behalf of Davide Perini Date: Friday, August 25, 2023 at 00:45 To: openjfx-dev@openjdk.org Subject: Preload fxml to avoid slow show() Hi, I have a tabpane with 15 tabs, every tab h