I have a program which loads many fxml files when executed. The application will be finished in a short time, and loading the application just takes too long.
There
These are all great ways to improve performance. However if your issue is that it is running faster in Eclipse and then after compile you see a major slowdown in load times there is a much simpler solution.
For my project I was creating an embedded FX Browser inside an existing swing application. It worked fine in the IDE and loaded almost instantaneously, however upon compiling to a runnable jar, the runnable jar took a very long time to load the FX portion.
The solution to this was during the export to jar to select "Extract required libraries into generated JAR" instead of "Package required libraries into generated JAR". This will significantly speed up load times for any dependencies.