Skip to content

Fix OSX "slow" menus #7935

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

Merged
merged 2 commits into from
Aug 28, 2018
Merged

Fix OSX "slow" menus #7935

merged 2 commits into from
Aug 28, 2018

Conversation

facchinm
Copy link
Member

JRE 8u161 made JMenu.insert() MUCH slower on OSX.
This exposed a bug lurking there for years; in fact the menu entries were rebuilt every time since JMenu.getComponent() returns an empty list.
The correct function is JMenu.getMenuComponents()
In the meantime, also remove sketchbookMenu and examplesMenu deletion on board change; only their content needs to be updated, not the container itself.

Fixes #7924

Fixes arduino#7924

JRE 8u161 made JMenu.insert() MUCH slower on OSX.
This exposed a bug lurking there for years; in fact the menu entries were rebuilt every time since JMenu.getComponent() returns an empty list.
The correct function is JMenu.getMenuComponents().
In the meantime, also remove sketchbookMenu and examplesMenu being deleted on board change; only their content needs to be updated, not the container itself.
@DrDiodac
Copy link

DrDiodac commented Aug 28, 2018 via email

@PaulStoffregen
Copy link
Contributor

PaulStoffregen commented Aug 28, 2018

If you find any problem that only happens with Teensy, but doesn't occur with official Arduino boards, please report it on the PJRC Forum, not here. I'll reply there and work on a fix.

This tracker is only for Arduino issues.

And just to confirm, there is an unrelated Teensyduino bug where the Ports menu is experiencing lag on some Macintosh computers. I am working on fix. The last thing I want to do is cause confusion or extra work for the Arduino developers, in this unfortunate situation of entirely different issues that manifest with similar symptoms.

@facchinm facchinm merged commit bf42f26 into arduino:master Aug 28, 2018
@cmaglie cmaglie deleted the fix_osx_slow_menus branch August 28, 2018 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants