Skip to content

Rust-analyzer is extremely slow to index uom #7953

Closed
@bheisler

Description

@bheisler

I'm working on a project which uses the uom crate. Rust-analyzer was always very slow to index this crate, but recently it's become unusable. Rust-analyzer has been stuck, pinning one CPU, on "indexing: 87/596 (uom)" for a full hour, and none of its usual features work until indexing is complete.

(I'm afraid I don't know precisely when this happened; I haven't worked on this project much since November. It was usable then.)

It does eventually work - in fact, it completed indexing as I'm typing this bug report - but an hour-long start-up time is not a great user experience. The rust-analyzer process is also using 1.7GB of memory.

I'm using version 0.2.513 of rust-analyzer in VSCode 1.54.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionA-perfperformance issuesS-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