]> git.proxmox.com Git - proxmox-backup.git/commit
tape/helpers/snapshot_reader: sort chunks by inode (per index)
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 18 Jun 2021 09:29:10 +0000 (11:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 28 Jun 2021 10:16:14 +0000 (12:16 +0200)
commit3d3769830be1dc677d487774617f91983bf1f538
treec97c7df3065961f6f81385ab73c62db513adb387
parent4921a411ade16771c0fd1490214b01069af70afe
tape/helpers/snapshot_reader: sort chunks by inode (per index)

sort the chunks we want to backup to tape by inode, to gain some
speed on spinning disks. this is done per index, not globally.

costs a bit memory, but not too much, about 16 bytes per chunk which
would mean ~4MiB for a 1TiB index with 4MiB chunks.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/tape/helpers/snapshot_reader.rs