-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(mtda): reduce costly calls to storage.status
The calls to storage.status are costly, as every time the device state is queried via an external process invocation. This patch optimizes this by: 1. not calling the GUI callback on each chunk, but only every 0.5s 2. in case we are in writing mode, the storage is always connected to the host. Hence, do not query the status from the driver. These improvements speedup writes and seeks by 2-3 times. Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
- Loading branch information
1 parent
3bc8a19
commit fbc4caf
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters