Performance problem in GUI when having a lot of output files in table "Output files"
When having a lot of output files listed under "Output files" it takes several seconds until GUI response to actions.
The long runtime occurs in isValidOutputDirectory()
. This produces two time-consuming calls: readOutputFile()
and readTrajectories()
. Verified with profiling tool VisualVM.
isValidOutputDirectory()
is used by callback TableSelectionListener.valueChanged()
.
Idea: just read in output files of selected scenario (and not all scenarios).