Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Don't DrawMenuBar() for every menu item #377

Merged
merged 1 commit into from
Nov 12, 2013

Conversation

redmunds
Copy link
Contributor

@redmunds redmunds commented Nov 9, 2013

Doesn't seem to be necessary to DrawMenuBar() on every menu item as it's added on Windows.SetMenuTitle() already sets a time to do that.

This seems to reduce start up time by ~3/4 second on my lenovo W510 running Win7. Also draws all core menus in menubar at once, followed by a second draw for extensions. Currently, the only extension that adds a menu it the builtin Debug menu, so this should be tested with other extensions that add menus (e.g. Emmet).

This is for adobe/brackets#5266, but there may be more that can be done.

Windows-only.

@ghost ghost assigned JeffryBooher Nov 9, 2013
@JeffryBooher
Copy link
Contributor

looks good

JeffryBooher added a commit that referenced this pull request Nov 12, 2013
Don't DrawMenuBar() for every menu item
@JeffryBooher JeffryBooher merged commit efc345e into master Nov 12, 2013
@JeffryBooher JeffryBooher deleted the randy/win-menu-performance-2 branch November 12, 2013 17:47
JeffryBooher added a commit that referenced this pull request Dec 8, 2015
Don't DrawMenuBar() for every menu item
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants