JMRI icon indicating copy to clipboard operation
JMRI copied to clipboard

'Startup' options "hint" on GUI: add 'load "Panel" file _before_ starting any "Tables" tool'

Open devel-bobm opened this issue 1 year ago • 7 comments

Per jmriusers message 233855 ( web link ) and follow-on, a user had slow start-up times. User was told that it could be the order of "startup" actions. User got impressive speedup by opening the XML first, then opening various "Tables".

Of note, the user had this to say in jmriusers message 233879 ( web link) )

I noticed that the preferences panel says "Scripts should be run last in most cases" - could we perhaps add "files should be loaded first" as well please?

For our purposes, I'd suggest something like "'Load table content and panels...', if used, should be loaded first.".

Or, "'Load table content and panels...', if used, should be loaded before any action to 'Open any Table'."

devel-bobm avatar Aug 28 '24 21:08 devel-bobm

A possible change to the bottom of he "Start Up" window:

Start-up-notes-proposed

devel-bobm avatar Aug 28 '24 22:08 devel-bobm

Sounds very good. If you have already done the change in your branch, I suggest that you create a PR for it.

danielb987 avatar Aug 28 '24 23:08 danielb987

Just to be clear, is it having the tables open, or is this impacted by just having the 'add button' for the tables in the startup?

KenC57 avatar Aug 28 '24 23:08 KenC57

@KenC57 , This affects the "Start up" preferences only, and when a "panel" file is loaded. It relates to "how many times must each 'Table' GUI gets "re-generated" during an XML load".

If there are no opened "Table" GUIs when an XML is loaded, then the number of "re-sorted" is zero, and panel load (at "Start up" time) is pretty good. But if there is a "Table" opened, and an XML is loaded, and the panel defines objects of the type where the table is opened, and the Table is sorted by anything other than "ascending System Name", then loading the XML can take far longer, depending on how many objects need to be added to any Table's GUI.

It is more difficult to "solve" the GUI and its re-sorting issues, and less difficult to tell the user to "load the XML file" before "opening any 'Table' GUI".

devel-bobm avatar Aug 29 '24 00:08 devel-bobm

@danielb987 , I will. But I18N issues will exist; I only remember random bits of my high school French and Latin from way too many years ago!

devel-bobm avatar Aug 29 '24 00:08 devel-bobm

@danielb987 , I will. But I18N issues will exist; I only remember random bits of my high school French and Latin from way too many years ago!

Thank you!

@DanielBoudreau Can you assist @devel-bobm in French translations?

danielb987 avatar Aug 29 '24 00:08 danielb987

Yes.

Dan


From: Daniel @.> Sent: Wednesday, August 28, 2024 8:54 PM To: JMRI/JMRI @.> Cc: Daniel Boudreau @.>; Mention @.> Subject: Re: [JMRI/JMRI] 'Startup' options "hint" on GUI: add 'load "Panel" file before starting any "Tables" tool' (Issue #13390)

@danielb987https://github.com/danielb987 , I will. But I18N issues will exist; I only remember random bits of my high school French and Latin from way too many years ago!

Thank you!

@DanielBoudreauhttps://github.com/DanielBoudreau Can you assist @devel-bobmhttps://github.com/devel-bobm in French translations?

— Reply to this email directly, view it on GitHubhttps://github.com/JMRI/JMRI/issues/13390#issuecomment-2316516624, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADODNJ6NZCNVCVODIYLMZP3ZTZWNHAVCNFSM6AAAAABNJDG3ESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJWGUYTMNRSGQ. You are receiving this because you were mentioned.Message ID: @.***>

DanielBoudreau avatar Aug 29 '24 01:08 DanielBoudreau

Closed by #13391

bobjacobsen avatar Sep 13 '24 07:09 bobjacobsen