rust/crates/ra_ide/src
Michal Terepeta be967b94e1 Fix a problem with Durability of libraries
When processing a change with added libraries, we used
`Default::default` for `SourceRoot` which sets `is_library` to false.
Since we use `is_library` to decide whether to use low or high
durability, I believe that this caused us to mark many library
dependencies as having low durability and thus increased the size of the
graph that salsa needed to verify on every change.

Based on my initial tests this speeds up the `CrateDefMapQuery` on
rust-analyzer from about ~64ms to ~14ms and reduces the number of
validations for the query from over 60k to about 7k.

Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
2020-01-06 22:21:56 +01:00
..
completion visible_from -> is_visible_from 2019-12-27 11:25:04 +01:00
display Don't bother with focus range for navigation to locals 2019-12-18 16:45:42 +01:00
references Fix resolve for field init shorthand 2019-12-20 14:48:14 +01:00
snapshots Drop support for legacy colorization 2019-12-31 14:11:25 +01:00
assists.rs
call_info.rs cargo fmt 2019-12-18 09:11:47 -05:00
change.rs Fix a problem with Durability of libraries 2020-01-06 22:21:56 +01:00
completion.rs
db.rs Remove more dead code 2019-12-08 17:45:14 +01:00
diagnostics.rs Rename Source -> InFile 2019-11-28 12:50:26 +03:00
display.rs Remove unused imports 2019-12-20 11:18:24 -05:00
expand_macro.rs Clippy lints 2019-12-20 15:14:30 -05:00
expand.rs Use simpler logic on original_range 2019-12-15 02:34:16 +08:00
extend_selection.rs Clippy lints 2019-12-20 15:14:30 -05:00
feature_flags.rs
folding_ranges.rs
goto_definition.rs Fix parser for macro call in pattern position 2019-12-20 23:26:04 +08:00
goto_type_definition.rs for goto and hover pick the token based on a priority 2019-12-13 22:00:05 +01:00
hover.rs Remove the index resolution from hover 2019-12-20 11:16:47 -05:00
impls.rs Rename Source -> InFile 2019-11-28 12:50:26 +03:00
inlay_hints.rs Omit closure parameters 2019-12-23 18:30:25 +02:00
join_lines.rs
lib.rs Remove TruncateOptions struct 2019-12-19 16:43:41 +02:00
line_index_utils.rs
line_index.rs
marks.rs Fix resolve for field init shorthand 2019-12-20 14:48:14 +01:00
matching_brace.rs
mock_analysis.rs
parent_module.rs Remove ty from code_model 2019-12-08 12:44:14 +01:00
references.rs Rename GenericParam -> TypeParam 2019-12-07 20:25:48 +01:00
runnables.rs Rename Source -> InFile 2019-11-28 12:50:26 +03:00
source_change.rs
status.rs
symbol_index.rs
syntax_highlighting.rs Drop support for legacy colorization 2019-12-31 14:11:25 +01:00
syntax_tree.rs
test_utils.rs
typing.rs
wasm_shims.rs