-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Internalize or remove Zlib implementation #2249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@TomFinley - do you think we can remove this code altogether? I tried to find callers of it, but I couldn't see exactly who invokes it. |
I can be wrong, but I think we decided to go with C# inflate/deflate algorithm, because our internal zlib is actually modified version of zlib code which is impossible to open source. |
It's been some months since the evaluation, but when we did I believe we found that while compression of just raw |
System.Io .Compression these days is implemented around Zlib these days : corefx has a copy of it. One would hope it is possible to get performance close to directly calling zlib, but I don't know. |
This code is not being called by ML.NET, and it was not intended to be public API. Removing. Fix dotnet#2249
So I would have hoped too. Indeed, back when .NET Framework 4.5 was shipped, strange as it may seem the thing I was most looking forward to was that they were changing from their own internal implementation of DEFLATE, to actually using zlib. It was a definite improvement -- the pre-4.5 situation was just flat out awful -- but still to my disappointment considerably slower, by about 4x IIRC. Very disappointing. Now then, the situation now is a lot better, still a bit slower though at least on compression, at least, if I remember the evaluation we did earlier this year all right. |
This code is not being called by ML.NET, and it was not intended to be public API. Removing. Fix #2249
We have public Zlib types. We should at least make them internal, and remove them if possible.
machinelearning/src/Microsoft.ML.Data/DataLoadSave/Binary/Zlib/ZDeflateStream.cs
Line 10 in 0c62e30
The text was updated successfully, but these errors were encountered: