proxmox-backup/src
Wolfgang Bumiller b300e6fbc2 use BufReader/Writer for Files passed to serde_json::from_reader/writer
As serde_json will otherwise read files 1 byte at a time.
Writing is a bit better, but syntacitcal elements (quotes, braces,
commas) still often show up as single write syscalls, so use BufWriter
there as well.

Note that while we do store the file in the resulting objects, we do not
need to keep the buffered read/writers as we always `seek` to the
beginning on further file operations.

Reported-by: Mark Schouten <mark@tuxis.nl>
Link: https://lists.proxmox.com/pipermail/pbs-devel/2022-April/004909.html
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-04-06 16:40:35 +02:00
..
acme tree-wide: fix needless borrows 2021-12-30 13:55:33 +01:00
api2 api: tape: rust format 2022-04-06 16:31:49 +02:00
backup ParallelHandler: avoid re-export (cleanup) 2022-02-14 14:12:39 +01:00
bin cli: tape: rust format 2022-04-06 16:27:32 +02:00
config use BufReader/Writer for Files passed to serde_json::from_reader/writer 2022-04-06 16:40:35 +02:00
server ParallelHandler: avoid re-export (cleanup) 2022-02-14 14:12:39 +01:00
tape use io_format_err, io_bail, io_err_other from proxmox-lang 2022-02-21 14:24:13 +01:00
tools fix #3067: api: add support for multi-line comments in node.cfg 2022-03-23 10:43:43 +01:00
auth_helpers.rs update to proxmox-sys 0.2 crate 2021-11-24 10:32:27 +01:00
auth.rs update to proxmox-sys 0.2 crate 2021-11-24 10:32:27 +01:00
client_helpers.rs make pbs_tools::cert not depend on pbs-buildcfg 2021-09-29 14:11:26 +02:00
lib.rs move src/shared_rate_limiter.rs to src/tools/shared_rate_limiter.rs 2022-02-14 14:57:56 +01:00
rrd_cache.rs rrd_cache: add developer docs 2022-02-14 12:07:10 +01:00
traffic_control_cache.rs move src/shared_rate_limiter.rs to src/tools/shared_rate_limiter.rs 2022-02-14 14:57:56 +01:00