You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During my comparison of compression algorithms I've tested your nuget package (Snappy.Sharp 1.0.0), but something is wrong: compressing a 10MB binary file results in about 18MB output, which is quite the opposite of compression :-)
10478124 bytes => 18661217 bytes ~ 178,10%
Switching to another snappy binding (Snappy.Net if I remember correctly) results in a 64% compression ratio.
My code looks something like this:
FileInfo tmp = new FileInfo(Path.GetTempFileName());
using (FileStream fs = new FileStream(tmp.FullName, FileMode.Open, FileAccess.Write, FileShare.None))
using (SnappyStream s = new SnappyStream(fs, CompressionMode.Compress))
{
// ... pump data into s
The text was updated successfully, but these errors were encountered:
During my comparison of compression algorithms I've tested your nuget package (Snappy.Sharp 1.0.0), but something is wrong: compressing a 10MB binary file results in about 18MB output, which is quite the opposite of compression :-)
10478124 bytes => 18661217 bytes ~ 178,10%
Switching to another snappy binding (Snappy.Net if I remember correctly) results in a 64% compression ratio.
My code looks something like this:
The text was updated successfully, but these errors were encountered: