guijs icon indicating copy to clipboard operation
guijs copied to clipboard

Startup is slow

Open Akryum opened this issue 5 years ago • 8 comments

Describe the bug It takes a few seconds to start on Windows (~6-7 sec. on my computer)

To Reproduce Steps to reproduce the behavior:

  1. Open the app

Expected behavior Startup time should be lower, maximum 1 or 2 seconds.

Desktop (please complete the following information):

  • OS: Windows 10
  • Node version: 12.16
  • Are you using nvm? Yes

Akryum avatar Mar 01 '20 12:03 Akryum

FWIW: My startup time is ~2-3 sec. This is similar to Slack, VSCode, Discord. Slower than Firefox, Sublime Text 3. Faster than Spotify, Steam.

Machine: Win 10 Pro 1909 i5-6600 @ 3.30GHz 16GB RAM

Node: 12.16.1

nvm: No

tbeseda avatar Mar 01 '20 18:03 tbeseda

Is your startup time the time it takes to have the home screen displayed? My window opens almost instantly.

Akryum avatar Mar 02 '20 00:03 Akryum

That's the time to see the guijs UI/home screen. Launched again and used a stopwatch app for rough timing: got 4 seconds. Seems close to yours; could be improved I'd guess.

tbeseda avatar Mar 02 '20 00:03 tbeseda

On my computers:

  • Windows 10, i7 3.5GHz 16GB RAM ➡️ ~7.5s
  • Linux, i7 2.7 GHz 8GB RAM ➡️ ~4s

Akryum avatar Mar 02 '20 01:03 Akryum

I think that this is because of the way we are making sure the latest version is installed. Right @lucasfernog ?

nothingismagick avatar Mar 02 '20 16:03 nothingismagick

Yeah we really should make the updater run only once a day or something like that, or maybe run after the UI is shown, but that would require a better integration with frontend-core.

lucasfernog avatar Mar 02 '20 16:03 lucasfernog

maybe run after the UI is shown, but that would require a better integration with frontend-core

That would be rad. I'll work on a new updater UI in the future.

Akryum avatar Mar 03 '20 16:03 Akryum

Server startup time could be improved too I think.

Akryum avatar Mar 03 '20 18:03 Akryum