Startup performance is slow #761

Closed
opened 2026-01-29 16:47:52 +00:00 by claunia · 11 comments
Owner

Originally created by @vinnaykulkarni on GitHub (Feb 11, 2022).

Originally assigned to: @GregorBiswanger on GitHub.

Application is taking nearly 90 seconds to start, post installation. Using Electron latest version and .Net Core 5

Originally created by @vinnaykulkarni on GitHub (Feb 11, 2022). Originally assigned to: @GregorBiswanger on GitHub. Application is taking nearly 90 seconds to start, post installation. Using Electron latest version and .Net Core 5
claunia added the question label 2026-01-29 16:47:52 +00:00
Author
Owner

@ggomarighetti commented on GitHub (Feb 13, 2022):

It is something that is known, and that will be sought to be optimized in the next updates, as the creators of the repo said, as an aid the "splashscreen" was introduced, which is shown during the loading process of the application, so that the user does not think that the application did not start or that it froze.

@ggomarighetti commented on GitHub (Feb 13, 2022): It is something that is known, and that will be sought to be optimized in the next updates, as the creators of the repo said, as an aid the "splashscreen" was introduced, which is shown during the loading process of the application, so that the user does not think that the application did not start or that it froze.
Author
Owner

@vinnaykulkarni commented on GitHub (Feb 14, 2022):

Hi @ggomarighetti thanks for the comment, I have enabled the splash screen, however, the 90 seconds time seems to be higher so was looking for help.
Thanks for putting this as a known issue, will wait for the updates.
@GregorBiswanger @robertmuehsig thanks for the Electorn.Net

@vinnaykulkarni commented on GitHub (Feb 14, 2022): Hi @ggomarighetti thanks for the comment, I have enabled the splash screen, however, the 90 seconds time seems to be higher so was looking for help. Thanks for putting this as a known issue, will wait for the updates. @GregorBiswanger @robertmuehsig thanks for the Electorn.Net
Author
Owner

@GregorBiswanger commented on GitHub (Feb 15, 2022):

Unfortunately, malware developers use Electron too. So that under Windows the Windows Defender slows down the start. The only solution here would be to exclude realtime for your own app or to buy a certificate.

As a great comparison, open Visual Studio Code... and open a new, unknown electron app.. four seconds are only slowed down by windows defender.. a shame, because electron is based on the image, although electron is extremely powerful..

@GregorBiswanger commented on GitHub (Feb 15, 2022): Unfortunately, malware developers use Electron too. So that under Windows the Windows Defender slows down the start. The only solution here would be to exclude realtime for your own app or to buy a certificate. As a great comparison, open Visual Studio Code... and open a new, unknown electron app.. four seconds are only slowed down by windows defender.. a shame, because electron is based on the image, although electron is extremely powerful..
Author
Owner

@vinnaykulkarni commented on GitHub (Feb 15, 2022):

Hi @GregorBiswanger thanks, will check adding to the exclusion of Defender and report back the status

@vinnaykulkarni commented on GitHub (Feb 15, 2022): Hi @GregorBiswanger thanks, will check adding to the exclusion of Defender and report back the status
Author
Owner

@vinnaykulkarni commented on GitHub (Feb 17, 2022):

@GregorBiswanger checked adding to exclusion, there was very minor improvement seen, like out of 90 secs 20 secs were reduced

@vinnaykulkarni commented on GitHub (Feb 17, 2022): @GregorBiswanger checked adding to exclusion, there was very minor improvement seen, like out of 90 secs 20 secs were reduced
Author
Owner

@GregorBiswanger commented on GitHub (Feb 17, 2022):

Then there can be several other reasons that delay a startup. The most important rule is: measure. You need to profile where exactly the lag is happening. Is it the startup of .net? In most cases: yes. Because Electron is incredibly fast active.

@GregorBiswanger commented on GitHub (Feb 17, 2022): Then there can be several other reasons that delay a startup. The most important rule is: measure. You need to profile where exactly the lag is happening. Is it the startup of .net? In most cases: yes. Because Electron is incredibly fast active.
Author
Owner

@GregorBiswanger commented on GitHub (Feb 17, 2022):

It often helps to reproduce the problem. If you can reproduce a "Hello World" and provide it to me on github, I'm happy to help.

@GregorBiswanger commented on GitHub (Feb 17, 2022): It often helps to reproduce the problem. If you can reproduce a "Hello World" and provide it to me on github, I'm happy to help.
Author
Owner

@GregorBiswanger commented on GitHub (Feb 17, 2022):

It is important to consider Windows Defender for the new project again.

@GregorBiswanger commented on GitHub (Feb 17, 2022): It is important to consider Windows Defender for the new project again.
Author
Owner

@vinnaykulkarni commented on GitHub (Feb 23, 2022):

Thanks will check with the suggestions and update here

@vinnaykulkarni commented on GitHub (Feb 23, 2022): Thanks will check with the suggestions and update here
Author
Owner

@codingedgar commented on GitHub (May 26, 2022):

@ggomarighetti @vinaykulkarni89 can you point to the named splash screen option you are talking about? I wish I could do something like Discord, which has a progress bar and everything while the update is downloading and installing all the way up to opening the window, is that somehow possible with said splash or another technique?

@codingedgar commented on GitHub (May 26, 2022): @ggomarighetti @vinaykulkarni89 can you point to the named splash screen option you are talking about? I wish I could do something like Discord, which has a progress bar and everything while the update is downloading and installing all the way up to opening the window, is that somehow possible with said splash or another technique?
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

P.S. On Windows, Windows Defender intervenes on a non-certified Electron app and delays the call by several seconds. If you add your project to Windows Defender under exclude, the application rips like a rocket.

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉 With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun! **P.S. On Windows, Windows Defender intervenes on a non-certified Electron app and delays the call by several seconds. If you add your project to Windows Defender under exclude, the application rips like a rocket.**
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#761