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

Improve performance under batch operations #826

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Improve performance under batch operations #826

merged 2 commits into from
Sep 6, 2024

Conversation

scohen
Copy link
Collaborator

@scohen scohen commented Sep 5, 2024

This commit seeks to improve the performance under batch operations by holding off compilations until after a period of quiescence. Prior, we were building every 100 or so milliseconds, but this would cause builds to happen during batch operations.

Instead, this PR dramatically simplifies the build process to utilize timeouts to detect a quiet period after which builds can commence.

I also found a missed case while transforming diagnostics into elixir that caused crashes that took down the project node. I was unaware that the uri of a diagnostic can be nil (how?!?).

Prior to this PR, mass renames would never finish in emacs, and now they can.

This commit seeks to improve the performance under batch operations by
holding off compilations until after a period of quiescence. Prior, we
were building every 100 or so milliseconds, but this would cause builds
to happen during batch operations.

Instead, this PR dramatically simplifies the build process to utilize
timeouts to detect a quiet period after which builds can commence.

I also found a missed case while transforming diagnostics into elixir
that caused crashes that took down the project node. I was unaware that
the uri of a diagnostic can be nil (how?!?).

Prior to this PR, mass renames would never finish in emacs, and now they
can.
Copy link
Collaborator

@zachallaun zachallaun left a comment

Choose a reason for hiding this comment

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

Looks good to me after changes 👍

@scohen scohen merged commit d54920c into main Sep 6, 2024
12 checks passed
@scohen scohen deleted the build-timeouts branch September 6, 2024 16:43
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