Skip to content

Crate graph loading is slow and blocks the main loop #8623

@matklad

Description

@matklad
  350ms - GlobalState::handle_event
      350ms - GlobalState::handle_event/task
          350ms - GlobalState::switch_workspaces
              344ms - ProjectWorkspace::to_crate_graph
                  344ms - cargo_to_crate_graph
                        0ms - sysroot_to_crate_graph (1 calls)
                      344ms - ???
                0ms - GlobalState::process_changes (1 calls)

when opening https://github.com/near/nearcore

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-perfperformance issuesC-ArchitectureBig architectural things which we need to figure up-front (or suggestions for rewrites :0) )C-bugCategory: bugC-enhancementCategory: enhancementS-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions