Skip to content

[Localized Reader] O(n²) 查找替代 HashSet #191

@TrueNine

Description

@TrueNine

entries.iter_mut().find(|e| e.name == full_name) is O(n) per lookup, making entire scan O(n²).

File: sdk/src/repositories/localized_reader.rs:96

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglowLow priorityrustRust SDK/CLI/MCP code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions