[pbs-devel] [PATCH proxmox-backup 0/6] add compression to api/static files

Dominik Csapak d.csapak at proxmox.com
Wed Mar 31 11:44:12 CEST 2021


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)

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

-- 
2.20.1






More information about the pbs-devel mailing list