Commit bd75a44
authored
fix(qcow2): read FileSR allocated size only when needed (#146)
Reading the allocated size systematically for FileVDI is costly and is only
used by the GC for specific VDIs, this align the reading of the allocated size
with the behavior of LVMVDI where it's only obtained when needed.
For a SR of 20k (empty) QCOW2 VDIs, we get the scan to go from:
```
real 3m34.294s
```
to:
```
real 0m21.022s
```
For VDIs with data, this could be even bigger.
Signed-off-by: Damien Thenot <damien.thenot@vates.tech>1 parent 88c5c79 commit bd75a44
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
490 | 489 | | |
491 | 490 | | |
492 | 491 | | |
| |||
0 commit comments