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

Stop creating dafny options (expensive) more than once #3543

Conversation

keyboardDrummer
Copy link
Member

@keyboardDrummer keyboardDrummer commented Feb 15, 2023

Stop creating dafny options (expensive) midway during normal operation, this makes the OSX tests complete in about 25 minutes as opposed to 60.

Reduces the runtime of EnsuresPriorityDependsOnEditingWhileEditingSameMethod by about 50%. I expect most other language server tests will be positively affected as well.

#3233 introduced code that starts a Z3 process being started whenever DafnyOption.Create() is called, which makes it slow, so such calls such be avoided in hot areas.

image

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@keyboardDrummer keyboardDrummer changed the title Stop creating dafny options (expensive) midway during normal operation Stop creating dafny options (expensive) more than once Feb 15, 2023
@keyboardDrummer keyboardDrummer merged commit 3a29285 into dafny-lang:master Feb 15, 2023
@keyboardDrummer keyboardDrummer deleted the stopCreatingDafnyOptionsMidway branch February 15, 2023 15:15
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.

2 participants