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

Add +swbt none to remove busy-wait and improve performance #331

Merged
merged 3 commits into from
Aug 1, 2020

Conversation

axelson
Copy link
Member

@axelson axelson commented Jul 24, 2020

Utilizing busy-wait to reduce latency primarily makes sense for applications that are running as the only node on the machine. So it doesn't make sense for ElixirLS because there will usually be other processes running on the machine such as the editor and potentially other ElixirLS instances.

A blog post that touches on +swbt none:
https://www.ably.io/blog/beam-optimization-mqtt/

Also add sbwtdcpu and sbwtdio

Fixes #328

Utilizing busy-wait to reduce latency primarily makes sense for
applications that are running as the only node on the machine. So it
doesn't make sense for ElixirLS because there will usually be other
processes running on the machine such as the editor and potentially
other ElixirLS instances.

A blog post that touches on `+swbt none`:
https://www.ably.io/blog/beam-optimization-mqtt/

Also add sbwtdcpu and sbwtdio

Fixes elixir-lsp#328
@lukaszsamson
Copy link
Collaborator

We also need similar changes in language_server.bat and debugger.bat

@axelson
Copy link
Member Author

axelson commented Jul 24, 2020

Ah, very good point! Updated.

@axelson axelson merged commit 3c1085b into elixir-lsp:master Aug 1, 2020
@axelson axelson deleted the swbt-none branch August 1, 2020 19:31
@axelson axelson mentioned this pull request Aug 2, 2020
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.

Consider setting +sbwt none BEAM option
2 participants