[pbs-devel] [PATCH proxmox-backup 0/6] add compression to api/static files
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Mar 31 12:52:14 CEST 2021
On 31.03.21 11:44, Dominik Csapak wrote:
> by using the flate2 crate
>
> this series will also help send a simpler version of my zip deflate
> encoder patch (i'll send that in the next few days)
high level comment: talked with Dietmar in the morning, and we agreed to
avoid a disk cache for now, the static files are seldom served so probably
not worth a more complex caching system which produces disk IO - we can
always add it in the future, if the on-demand approach shows problems.
>
> Dominik Csapak (6):
> tools: add compression module
> tools/compression: add DeflateEncoder and helpers
> add a CACHE_DIR to the created directories on daemon startup
> server/rest: add helpers for compression
> server/rest: compress api calls
> server/rest: compress static files
>
> Cargo.toml | 1 +
> src/bin/proxmox-backup-api.rs | 2 +-
> src/buildcfg.rs | 6 +
> src/server/rest.rs | 181 ++++++++++++++++++++----
> src/server/worker_task.rs | 9 +-
> src/tools.rs | 1 +
> src/tools/compression.rs | 251 ++++++++++++++++++++++++++++++++++
> tests/worker-task-abort.rs | 2 +-
> 8 files changed, 424 insertions(+), 29 deletions(-)
> create mode 100644 src/tools/compression.rs
>
More information about the pbs-devel
mailing list