Linkora icon indicating copy to clipboard operation
Linkora copied to clipboard

[Enhancement] Desktop application opening time

Open MathisP75 opened this issue 11 months ago • 3 comments

The addition of a desktop application is awesome, but currently, it can take nearly 10 seconds for it to open even on a high end system. Is this a limitation of the application's framework or is it something that could be optimized? Note that I have only tested on Windows, and not on Linux (yet).

MathisP75 avatar Feb 15 '25 18:02 MathisP75

I noticed that the app launches quicker if it has been opened once.

MathisP75 avatar Feb 15 '25 21:02 MathisP75

Preferences and localization are loaded before launching the app. Currently, this process is sequential. I'll update the implementation to be asynchronous, which should optimize this behaviour. Thanks for reporting this; it will be fixed in the next version.

sakethpathike avatar Feb 16 '25 06:02 sakethpathike

I have tested and there's not a major impact even with the current approach, although the new implementation does speed it up but it's negligible:

  • sequential refers to the current approach of loading these values of preferences and localization.
  • async refers to the implementation that will be included in the next version.

Now, this of course depends on the system, but the async approach might be useful for low-end systems.

Is this a limitation of the application's framework or is it something that could be optimized?

AFAIK initialization does take some time but I don't think it will hit the 10-second mark on a decent machine, and the current approach of the app seems to be ok, so I'm not sure if I can improve the initialization time.

sakethpathike avatar Feb 16 '25 10:02 sakethpathike