getting an entry from tar.gz using flate2 taking more time when zlib-rs backend is used
I have a tar.gz(compressed size: 380MiB, uncompressed size: 5.8GiB) file which has many entries inside of it. I need to get a particular entry (entry size: 5.79GiB) from this archive. Since I was using the default features of flate2 crate which defaults to miniz_oxide, I thought of switching the back-end to zlib-rs, to get better performance. Surprisingly the performance of miniz_oxide back-end was almost twice that of zlib-rs back-end. Am I doing something wrong here? main.rs use anyhow::{Result, bail}; use flate2::read::GzDecoder; use std::ffi::OsStr; use std::fs::File; use std::io::{Read, S
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.