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 reusing solvers with the IDE by default #5325

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

keyboardDrummer
Copy link
Member

@keyboardDrummer keyboardDrummer commented Apr 16, 2024

Description

  • By default, do not let the IDE reuse solvers between compilations. This makes the IDE verification behavior more like that of the CLI

How has this been tested?

Manually tested that latency of verification after a change still feels snappy

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

MikaelMayer
MikaelMayer previously approved these changes Apr 16, 2024
Copy link
Member

@MikaelMayer MikaelMayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might help, hopefully we can get to the bottom of the best IDE experience by testing UX changes such as this one.

if (options.Get(ReuseSolvers)) {
boogieEngine ??= new ExecutionEngine(options, cache, scheduler);
} else {
boogieEngine?.Dispose();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. I forgot about that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing test about process counts alerted me to it

@keyboardDrummer keyboardDrummer merged commit b34471f into dafny-lang:master Apr 17, 2024
20 checks passed
@keyboardDrummer keyboardDrummer deleted the doNotReuseSolvers branch April 17, 2024 16:03
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.

None yet

2 participants