Skip to main content

save_to_zip

Function save_to_zip 

Source
pub fn save_to_zip<P: TrxScalar>(trx: &TrxFile<P>, path: &Path) -> Result<()>
Expand description

Save a TrxFile<P> to a .trx zip archive.

All entries are written uncompressed (Stored). DEFLATE rarely pays off on the float-dominated payload of a TRX file: compression ratios are typically <15% and write time grows substantially. Callers who want to compress the groups/ entries (uint32 streamline-index lists, which do tend to have runs) can use save_to_zip_with.