Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osmet: avoid install performance regression in debug mode on Rust 1.64+
Debug builds on Rust 1.64+ were seeing a substantial performance hit in osmet unpack, causing the kola testiso pxe-offline-install scenario to time out. This is due to an apparent Rust performance regression when BufReader's buffer is larger than the blocks returned by the inner reader, if the code is built without optimization. In our case, osmet's write_unpacked_image() produces data in 8 KiB chunks, which are passed verbatim through the pipe to the 256 KiB PeekReader in write_image(). For now, work around this by having osmet consolidate writes through a 256 KiB BufWriter. The extra buffer is harmless, but once the affected Rust versions are no longer being used for development, it probably makes sense to drop this code. xref rust-lang/rust#102727
- Loading branch information