Skip to content

Client::block_for_drive too expensive to reasonably use #7

@jojo2357

Description

@jojo2357

Client::block_for_drive was too expensive to use in missioncenter, instead I build my own cache so i can lookup block devices for a drive.

The code iterates thru every block, which i call for every drive which has a very bad runtime, roughly d^2 when using a cache reduces it to d.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions