]> git.proxmox.com Git - proxmox-backup.git/commit - src/api2/admin/datastore.rs
replace AsyncIndexReader with SeekableCachedChunkReader
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 7 Jun 2021 15:35:28 +0000 (17:35 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 8 Jun 2021 07:42:44 +0000 (09:42 +0200)
commit1ef6e8b6a71eeb98898fa5af0619048368727435
tree32c7614d132cec81a8b55bb5058aac9a17c61dbc
parent10351f707524cca4b6f67e2332a796f7ba7f4057
replace AsyncIndexReader with SeekableCachedChunkReader

admin/datastore reads linearly only, so no need for cache (capacity of 1
basically means no cache except for the currently active chunk).
mount can do random access too, so cache last 8 chunks for possibly a
mild performance improvement.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/api2/admin/datastore.rs
src/bin/proxmox_backup_client/mount.rs