Skip to content

Commit

Permalink
feat: default to 1-thread execution
Browse files Browse the repository at this point in the history
Reduces memory usage with minimal effect to performance
  • Loading branch information
Desdaemon committed May 17, 2024
1 parent 7bde32f commit 6ce8d76
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 40 deletions.
38 changes: 0 additions & 38 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ tree-sitter = "0.20.10"
env_logger = "0.11.3"
ropey = "1.5.0"
serde_json = "1.0.108"
tokio = { version = "1.17.0", features = ["full"] }
tokio = { version = "1.17.0", features = ["macros", "rt", "fs", "io-std"] }
tower-lsp = { version = "0.20.0", features = ["proposed"] }
serde = { version = "1.0", features = ["derive"] }
dashmap = "5.1.0"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ impl LanguageServer for Backend {
}
}

#[tokio::main]
#[tokio::main(flavor = "current_thread")]
async fn main() {
let outlog = std::env::var("ODOO_LSP_LOG").ok().map(|var| {
let path = match var.as_str() {
Expand Down

0 comments on commit 6ce8d76

Please sign in to comment.