There is an application that reads files content of a certain folder and visualizes results in parallel . In case of parallel file access on HDD it works really good, but when I am doing the same things on DVD Rom it works awfull long. When I am wrap the file IO in a lock granting that it only single file read possible) I suisfied with DVD performance, but lacking performance on HDD.
Currently thinking of a mechanism of recognition of a storage performance by given folder path, and then, having some metric I would like to load balance parallel file reading.
How can I get such a metrics? (or if there is a way to get just slow devices like DVD, USB2?)
Is there better solution rather the one I am thinking of?