]> git.proxmox.com Git - proxmox-backup.git/commit
datastore: use cached snapshot time string in path
authorGabriel Goller <g.goller@proxmox.com>
Wed, 3 Jul 2024 15:08:36 +0000 (17:08 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 12 Jul 2024 11:41:04 +0000 (13:41 +0200)
commitc1689192d9e431a063ee89ca1c18b723bbdc970d
treead8c3a7eefdda8106d93e28f08528cda070a4381
parent0e9aa78bf4979720eec58352ac7afa6b0b4a8db2
datastore: use cached snapshot time string in path

When getting the `full_path` of a snapshot we did not use the cached
time string. By using it we avoid a call to the super-slow libc strftime.

This has some minor performance improvements of circa 7%. That is ~100ms
on my datastore with ~5000 snapshots.

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
pbs-datastore/src/backup_info.rs