Skip to content

perf: ThreadSafeComponents linear path lookup on discovery #6588

Description

@ljodea

Describe the solution you'd like

ThreadSafeComponents.EnsureComponent / FindByPath scan the full component slice on every call. Discovery and graph phases register many units, so membership work grows with the set size.

Index by resolved path (map) while keeping insertion-order slice for ToComponents. Same public API and symlink-aware first-wins identity.

Describe alternatives you've considered

Keep the linear scan; acceptable only for small repos.

Additional context

PR: #6587

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions