Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow BrowerWindow because of slow Menu #10947

Closed
jrieken opened this issue Oct 27, 2017 · 1 comment
Closed

Slow BrowerWindow because of slow Menu #10947

jrieken opened this issue Oct 27, 2017 · 1 comment

Comments

@jrieken
Copy link

jrieken commented Oct 27, 2017

  • Electron version: 1.7.x
  • Operating system: all

Expected behavior

calling new BrowserWindows should not spend 30-300ms creating Menu

Actual behavior

We get reports from our users, via code --prof-start, that show that creating a new browser windows is often slow. The profiles all point to the Menu constructor which ideally takes around 30ms but often takes more than 250ms (microsoft/vscode#21964)

Ideally this can be avoided, esp. because this builds the default menu not the actual menu.

screen shot 2017-10-27 at 10 42 54

To repro

  • get VS Code, start with code --prof-startup,
  • inspect the main-profile using node-inspector,

or

@codebytere
Copy link
Member

We are no longer implementing bugfixes for versions of Electron < 1.8.x, so i'm going to close this issue but if it is still persisting in more recent versions of Electron we can certainly reopen it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants