Commit 06c951e4 authored by Brian Barran's avatar Brian Barran
Browse files

Added compression feedback during conversion

parent c2e000e2
Pipeline #13403 failed with stages
in 1 minute and 8 seconds
......@@ -1187,21 +1187,28 @@ main(int argc, char* argv[])
if (compression)
{
if (compressionTolerance == 0.0f)
{
compressionMethod = OpenVDS::CompressionMethod::BitcompLossless;
}
else
if (compressionTolerance == 0.0f)
{
fmt::print("\nInfo: Using lossless compression.\n");
compressionMethod = OpenVDS::CompressionMethod::BitcompLossless;
}
else
{
if (sparseCompression)
{
compressionMethod = OpenVDS::CompressionMethod::BitcompLossyToSignedSparse;
fmt::print("\nInfo: Using sparse, lossy compression with tolerance {:.1f}%.\n", compressionTolerance);
compressionMethod = OpenVDS::CompressionMethod::BitcompLossyToSignedSparse;
}
else
{
compressionMethod = OpenVDS::CompressionMethod::BitcompLossyToSigned;
fmt::print("\nInfo: Using lossy compression with tolerance {:.1f}%.\n", compressionTolerance);
compressionMethod = OpenVDS::CompressionMethod::BitcompLossyToSigned;
}
}
}
}
else
{
fmt::print("\nNo compression elected.\n");
}
// get the canonical field name for the primary and secondary key
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment