rust/crates
bors[bot] cb160f2a34
Merge #2742
2742: Split `infer` query into two for better profiling r=flodiebold a=michalt

This is the same change as we did with `crate_def_map` and it does seem
that we mostly spend time in salsa, without recomputing much on
rust-analyzer side.

Example output:

```
 233ms - handle_inlay_hints
      163ms - get_inlay_hints
          163ms - SourceAnalyzer::new
               67ms - def_with_body_from_child_node
                   67ms - analyze_container
                       67ms - analyze_container
                           67ms - Module::from_definition
                               67ms - Module::from_file
                                   67ms - crate_def_map
                                        0ms - parse_macro_query (6 calls)
                                        0ms - raw_items_query (1 calls)
                                       66ms - ???
                            0ms - crate_def_map (1 calls)
                        0ms - crate_def_map (1 calls)
               96ms - infer
                    2ms - trait_solve_query (2 calls)
                   94ms - ???
                0ms - body_with_source_map_query (1 calls)
                0ms - crate_def_map (1 calls)
      [...]
```

Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>

Co-authored-by: Michal Terepeta <michal.terepeta@gmail.com>
2020-01-03 19:08:32 +00:00
..
ra_arena Switch to variant-granularity field type inference 2019-11-25 00:12:36 +03:00
ra_assists Merge #2650 2019-12-29 15:02:27 +00: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 Disable doctests 2019-11-17 18:35:05 +03:00
ra_cli Remove ty from code_model 2019-12-08 12:44:14 +01:00
ra_db Run rustfmt with respect to Cargo.toml edition 2019-12-04 23:05:01 +01:00
ra_fmt fix 2190; add test for "replace if let with match" 2019-11-20 19:01:06 +01:00
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 Split infer query into two for better profiling 2020-01-03 19:58:11 +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 Merge #2642 2019-12-22 08:05:02 +00:00
ra_prof More compact profiling display 2019-12-22 14:17:31 +01:00
ra_project_model Only add features flags if non-empty 2019-12-24 00:27:48 +08:00
ra_syntax Collect visibility of items during nameres 2019-12-26 16:23:40 +01:00
ra_text_edit Disable doctests 2019-11-17 18:35:05 +03:00
ra_tt Refactoring 2019-12-18 13:10:37 +08:00
ra_vfs_glob Disable doctests 2019-11-17 18:35:05 +03:00
test_utils Refactor goto tests to always specify texts 2019-12-18 16:00:35 +01:00