diff options
author | Aleksey Kladov <[email protected]> | 2019-06-07 10:46:49 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-06-12 11:25:30 +0100 |
commit | 15668119de40b97011a1f2e2d065d11f25a5833a (patch) | |
tree | 97b9523db35f07d1f5cb9df458a4bcdac323063d /crates/ra_db | |
parent | fc2658b0749b03f365a3f176582311efd2bc6462 (diff) |
make LRU_CAP configurable for batch db
Diffstat (limited to 'crates/ra_db')
-rw-r--r-- | crates/ra_db/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs index 7c49c585b..f08616100 100644 --- a/crates/ra_db/src/lib.rs +++ b/crates/ra_db/src/lib.rs | |||
@@ -65,6 +65,8 @@ pub struct FileRange { | |||
65 | pub range: TextRange, | 65 | pub range: TextRange, |
66 | } | 66 | } |
67 | 67 | ||
68 | pub const DEFAULT_LRU_CAP: usize = 128; | ||
69 | |||
68 | /// Database which stores all significant input facts: source code and project | 70 | /// Database which stores all significant input facts: source code and project |
69 | /// model. Everything else in rust-analyzer is derived from these queries. | 71 | /// model. Everything else in rust-analyzer is derived from these queries. |
70 | #[salsa::query_group(SourceDatabaseStorage)] | 72 | #[salsa::query_group(SourceDatabaseStorage)] |