mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-07 05:37:20 +00:00
Startup performance is slow #761
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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.
@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
@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..
@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 17, 2022):
@GregorBiswanger checked adding to exclusion, there was very minor improvement seen, like out of 90 secs 20 secs were reduced
@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):
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 is important to consider Windows Defender for the new project again.
@vinnaykulkarni commented on GitHub (Feb 23, 2022):
Thanks will check with the suggestions and update here
@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?
@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.