rust/crates
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
..
ra_arena
ra_assists BinOp helper to detect assignment 2020-01-04 15:54:31 -05:00
ra_batch Support setting cargo features 2019-12-13 18:16:34 +08:00
ra_cargo_watch Fix unused import for windows in cargo_watch test 2020-01-04 01:18:46 +08:00
ra_cfg
ra_cli
ra_db
ra_fmt
ra_hir Split infer query into two for better profiling 2020-01-03 19:58:11 +01:00
ra_hir_def Add _query suffix to compute_crate_def_map for consistency 2020-01-03 14:20:24 +01:00
ra_hir_expand Add dummy implementations of env! and option_env! builtins 2019-12-21 13:34:43 +01:00
ra_hir_ty Merge #2742 2020-01-03 19:08:32 +00:00
ra_ide Fix a problem with Durability of libraries 2020-01-06 22:21:56 +01:00
ra_lsp_server Update dependencies 2020-01-01 17:51:48 -05:00
ra_mbe Add details about test_repeat_bad_var current state 2019-12-30 17:12:20 +01:00
ra_parser Switch ast declaration from ron to a macro 2020-01-03 21:54:10 +01:00
ra_prof Improve profiling output when duration filter is specified 2020-01-02 17:26:02 +01:00
ra_project_model Only add features flags if non-empty 2019-12-24 00:27:48 +08:00
ra_syntax BinOp helper to detect assignment 2020-01-04 15:54:31 -05:00
ra_text_edit
ra_tt Refactoring 2019-12-18 13:10:37 +08:00
ra_vfs_glob
test_utils Refactor goto tests to always specify texts 2019-12-18 16:00:35 +01:00