Function write_split_comparison_csv

Source
pub fn write_split_comparison_csv(
    results: &[AnalysisResults],
    output_dir: &Path,
    file_paths: &[PathBuf],
) -> Result<()>
Expand description

Writes CSV files comparing groups of fields within each file, for split comparisons.

This function generates CSV files that compare two groups of fields (defined in the schema) within each analyzed file. It reports on differences in size, LZ77 matches, estimated size, and Zstd compression.

§Arguments

  • results - A slice of AnalysisResults, one for each analyzed file.
  • output_dir - The directory where the CSV files will be written.
  • file_paths - A slice of PathBufs representing the original file paths for each result.

§Returns

  • std::io::Result<()> - Ok if successful, otherwise an error.