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.
Client::block_for_drivewas 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^2when using a cache reduces it tod.