]> git.proxmox.com Git - proxmox-backup.git/commit - src/api2/admin/datastore.rs
backup: switch over to streaming Iterator improving memory usage
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Apr 2022 10:20:51 +0000 (12:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Apr 2022 10:38:16 +0000 (12:38 +0200)
commit249dde8b633e53aaeeec47e56b7941870034239f
tree03cefb05735ef55f064cb5816fc36f2954da17e5
parent7b125de3e18e8c946ff18e71e782dfb5b955a7ec
backup: switch over to streaming Iterator improving memory usage

Avoid collecting the whole group list in memory only to iterate and
filter over it again.

Note that the change could result in a indentation change, so best
viewed with `-w` flag.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/api2/admin/datastore.rs
src/backup/verify.rs
src/server/prune_job.rs
src/server/pull.rs