From: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Thu, 10 Jun 2021 21:28:14 +0000 (+0000) Subject: Merge #9206 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=c4c1fcb8e902adcc7879996fa7f53200fb36ce33;p=rust.git Merge #9206 9206: minor: Speed up fst items lookup during completions r=SomeoneToIgnore a=SomeoneToIgnore Part of https://github.com/rust-analyzer/rust-analyzer/issues/7542 A number of profile calls added for `import_on_the_fly` contents. Before: Screenshot 2021-06-11 at 00 19 13 After: Screenshot 2021-06-11 at 00 19 27 As a result, low hanging fruit was spotted: crazy amount of `fst_path` calls. Reducing that won ~200ms in the `import_on_the_fly @ sel` case in the `integrated_completion_benchmark`: Screenshot 2021-06-11 at 00 19 38 I'm not sure how to proceed with the remaining `???` marks in such methods as `collect_import_map` though: there's nothing but library calls in cycles, but maybe I'll come up with something later. Co-authored-by: Kirill Bulatov --- c4c1fcb8e902adcc7879996fa7f53200fb36ce33