Skip to content

Structure query engine caches around DefId being a CrateNum & intra-crate DefIndex. #45275

Closed
@eddyb

Description

@eddyb

Per-crate cache maps keyed on DefIndex may be more efficient and/or allow us to use Vec for queries keyed on DefId instead of HashMap.
We can use specialization (e.g. for splitting (DefId, T) into CrateNum and (DefIndex, T)), I think.

cc @nikomatsakis @michaelwoerister

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-query-systemArea: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions