8 Commits
Author SHA1 Message Date
Egor Bogatov 2f6104f163 [System.IO.Compression] Brotli from CoreFX (#12189)
Resolves https://github.com/mono/mono/issues/11431

I put the native impl to Mono.Native, but probably it should be in a separate lib (`libmono-native.0.dylib` before: **81kb**, after: **898kb**) if Linker is not able to trim it if it's not used.
Compiles and works on Windows (however, we don't build Mono.Native for Windows, but we can borrow `clrcompression.dll` from .net core) and macOS but requires changes in mono/corefx,

I disabled xunit tests as those need 50mb of test data.

PS: Brotli could be fully managed 😢 https://github.com/dotnet/corefxlab/issues/1673

C# ports:

- https://github.com/master131/BrotliSharpLib 
A quick benchmark (Compressing a 5mb file with max compression level=11)
Mono JIT: 25sec
Mono LLVM-AOT: 7.8sec
.NET Core 2.2: 6.8sec
.NET Core 3.0: 5.8sec
.NET Core's BrotliStream (with native lib): 3.5sec


- https://github.com/google/brotli/tree/master/csharp - official C# port. Based on Java sources, slow, outdated (2 years ago).
2019-02-06 00:25:19 +01:00
Marek Safar 42b505ce2f Bump corefx 2017-01-31 23:34:24 +01:00
Marek Safar 3f9b2dfd5f [System.IO.Compression] Replaced by corefx implementation 2017-01-04 15:37:40 +01:00
Alexander Köplinger bed9bc56d8 [bcl] Ensure all .sources files have newline at the end
It causes an issue with gensources.sh when using #include on Linux otherwise.
2016-03-04 21:48:09 +01:00
Joao Matos de46a3dd58 Added System.IO.Compression implementation based on SharpCompress. 2014-05-19 22:24:41 +01:00
Joao Matos dc79b5bff7 Revert "Added System.IO.Compression implementation."
This is currently breaking the build for Mono Droid.

This reverts commit b175675ad9.
2014-04-24 14:48:57 +01:00
Joao Matos b175675ad9 Added System.IO.Compression implementation. 2014-04-23 22:12:06 +01:00
Martin Baulig 171c946ecd Add System.IO.Compression.FileSystem stubs. 2013-03-12 17:22:59 -04:00