Skip to content

Finding all references to functions called new can take a long time #7404

Closed
@umanwizard

Description

@umanwizard

Sorry for the Materialize dependency, but I think a large-ish codebase is probably necessary to repro this.

To repro:

  1. Check out https://github.com/MaterializeInc/materialize
  2. Navigate over fn new in impl Locald (as of this writing, it's in src/expr/src/id.rs:45
  3. Find all references
  4. Observe it taking about 60s.

Maybe since finding references involves filtering by a string first, the very common name is what makes things slow? Just a guess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-perfperformance issuesA-tytype system / type inference / traits / method resolutionC-supportCategory: support questionsE-hardS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions