Skip to content

Spurious query recomputations during completion #8754

@matklad

Description

@matklad

See #8746 (comment)

I think at least to_fragment_kind function causes extra deps on syntax. SHort circuting that gives the following output:

    9ms - SourceBinder::to_module_def
        9ms - crate_def_map:wait
            3ms - item_tree_query (1 calls)
            5ms - ???
   12ms - descend_into_macros
       12ms - Semantics::analyze_impl
            8ms - infer:wait @ name
                8ms - infer_query
                    8ms - deref
                        8ms - deref_by_trait
                            8ms - trait_solve::wait
                                1ms - impl_data_query (123 calls)
                                7ms - ???

One item_tree_query is good. 123 impl_dta_queries is not so good, there's something else in here!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Broken WindowBugs / technical debt to be addressed immediately

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions