-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[IDE] Slow Startup - because of events trigged by 'boardsCustomMenus' #10214
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
Comments
See Time lost for loading board Esp8266
That's because it selects all the submenus, and forces a scan of the libraries. |
I managed to correct these errors, so I will do a PR to be able to better evaluate |
TBH, the board selection code, especially wrt to option menus, is a bit of a mess that could use a big refactor and cleanup. However, I suspect that in the near feature, some of this code might end up being moved into Anyway, I think fixing this slow startup would be good to do already (better to not wait for Thanks for looking into this, I'm looking forward to a PR :-) |
I am doing some analysis to improve the IDE startup time (I am discussing the topic in the email list).
I found another problem that is related to the menus. In particular:
createBoardMenusAndCustomMenus
, and in the method:filterVisibilityOfSubsequentBoardMenus
.What happens is that for each menu on a board such as Esp8266, it is calling
LibrariesIndexer.rescanLibraries()
, and it ends up costing a lot of time at startup and also when selecting a board.This is the stack (not an error ...):
As you can see for each menu item, he is manually calling 'actionPerformed', and doing a lot of unnecessary things
The text was updated successfully, but these errors were encountered: