rust-analyzer/crates/ra_hir_ty/src
Michal Terepeta d6c2a59538 Split infer query into two for better profiling
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>
2020-01-03 19:58:11 +01:00
..
infer Coerce closures to fn pointers 2019-12-20 18:54:33 +01:00
tests Resolve traits in infer using lang item infrastructure 2019-12-29 17:39:31 +01:00
traits Filter out error predicates in type bounds as well 2019-12-23 00:08:03 +01:00
autoderef.rs Clippy lints 2019-12-20 15:14:30 -05:00
db.rs Split infer query into two for better profiling 2020-01-03 19:58:11 +01:00
diagnostics.rs Rename Source -> InFile 2019-11-28 12:50:26 +03:00
display.rs Omit closure parameters 2019-12-23 18:30:25 +02:00
expr.rs Use path macro 2019-12-13 22:33:38 +01:00
infer.rs Split infer query into two for better profiling 2020-01-03 19:58:11 +01:00
lib.rs Split infer query into two for better profiling 2020-01-03 19:58:11 +01:00
lower.rs Support for nested ADT 2019-12-20 12:20:49 +01:00
marks.rs Add test mark 2019-12-15 21:06:08 +01:00
method_resolution.rs Move impls to ItemScope 2019-12-20 16:52:02 +01:00
op.rs Move Ty 2019-11-27 21:16:00 +03:00
primitive.rs Doc primitives 2019-11-26 15:41:48 +03:00
test_db.rs Move impls to ItemScope 2019-12-20 16:52:02 +01:00
tests.rs Don't add non-impl/trait containers to scope 2019-12-29 14:47:47 +01:00
traits.rs Introduce our own Chalk TypeFamily, instead of using ChalkIr 2019-12-23 00:08:03 +01:00
utils.rs Introduce ContainerId 2019-12-20 12:07:23 +01:00