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

Fix performance regression from overuse of interruption checks #2244

Merged
merged 2 commits into from
Mar 20, 2021

Conversation

dcwhite
Copy link
Member

@dcwhite dcwhite commented Mar 18, 2021

This didn't show up on Mac, so I missed it initially. It caused a crazy 300-1000X slow down in ShowField and any algorithm that (over)used the interruption feature using the new future/promise mechanism implemented in #2195, on Windows and Linux. That feature wasn't enabled in the GUI anyway, so I just took out all the checkForInterruption calls until I can figure out a less intrusive way to implement this. Please test and merge ASAP.

For example: ShowField on a 100^3 latvol went from 308 seconds to 1.42 seconds on my i7-10710U.

@dcwhite
Copy link
Member Author

dcwhite commented Mar 18, 2021

@RubioJr9 @nids2001 Linux users please test this!

@tarkpate
Copy link
Contributor

I did the latvol test with 100^3 too. It took about 5 minutes on master and 1 second on this branch.

@github-actions github-actions bot added the Build label Mar 20, 2021
@dcwhite dcwhite merged commit c811f87 into master Mar 20, 2021
@dcwhite dcwhite deleted the disable-stop-code branch March 20, 2021 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants