2

Hi i am just beginner to javafx. Created one project. And faces problem for slowness for loading javafx. So,found its solution from one of stack overflow question (Scene loads too slow - Scene loads too slow follows:- i. Use custom loader as given in (JavaFX2 - very poor performance when adding custom made (fxml)panels to gridpane dynamically) - Successfully integrated and using ii. Store controller in HashMap and reuse it with your loader iii. Use Tom Schindl module (https://tomsondev.bestsolution.at/2013/08/29/convert-fxml-to-java-as-part-of-the-build/)- for loading fxml. - Don't know how to do it, and as also there are plenty of problem scene as i googled.

Can anybody please provide a way for acomplish ii and iii task using javafx8. Please it will be great help if any body help me.

Community
  • 1
  • 1
  • 1
    Have you profiled this and figured out what is taking the time? The take-home message from the first link is that the majority of the performance savings can be made externally to the FXML loading. – James_D Mar 23 '17 at 17:06
  • James Sir. I am using custom loader as explained there. Performance improved, But i also want to improve in more extend. So need to precompile the fxml to java to increase performance of loading activity. I am using eclipse(Mars.2 (4.5.2) on fedora 15). So want to implement "Tom Schindl module" for javafx8. So please help me regarding it. – Suraj Dangat Mar 24 '17 at 06:45
  • 1
    Drastic performance change as done following thing :- i. Optimized CSS file. ii. CSS Minification. iii. Converted .css file to .bss file iv. Used this converted .bss file instead of .css – Suraj Dangat Mar 31 '17 at 11:25
  • That's very interesting. You should consider providing this as an answer to your own question. – James_D Mar 31 '17 at 11:30

1 Answers1

1

Final Working Solution :-
Drastic performance change as done following thing :- i. Optimized CSS file. ii. CSS Minification. iii. Converted .css file to .bss file iv. Used this converted .bss file instead of .css