Repository navigation
2.0 (LZMA, XZ, Speed)
- Support for LZMA/LZMA2 decompression.
- Support for unarchiving XZ archives.
- Significant performance improvement (this time for real).
Story time: It seems like that Swift'sArray.append(contentsOf:)function is ridiculously slow. When I replaced the majority of this function's calls with adding elements one by one, the speed of Deflate decompression became incredible (compared to what was before). If you look at the tests results in 'Tests/Results' directory you will understand about which difference I am talking. However, it is possible, that real reasons are different, but results are still impressive. - Now GZip and Zlib functions (as well as newly added XZ ones) calculate checksum for unarchived data.
Comment: Calculated checksum is compared then with the one stored in archive. If they don't coincide the new error is thrown. However, since it can happen at the end of decompression and it is very sad to throw out the result at this point, the unarchived data is returned as associated value of this new error. - Added functions for reading service information from GZip and Zlib archives.
Comment: This functions (and structs in which they are located) existed before, but were purely internal. Now they are in public API and more suitable for usage. - Documentation (list of public API functions with comments, etc.) is now hosted on Github pages and you can check it out here.
DeflateErrornow has a couple of more specific cases instead ofHuffmanTableError.- Some comments to public API have been rephrased.
- Added missing comment to
BZip2Error.WrongMagic. - Two build options have been added: LZMA_DIAG and LZMA_INFO.
Comment: this options make SWCompression to print messages when LZMA decompression is happening and in case of LZMA_DIAG there are a lot of messages. These options exist only for diagnostic and debugging purposes and are very likely to be removed in future versions.
One more thing. I have messed up with repository a little bit in attempt to remove lfs-tracked files from history when they weren't lfs-tracked. I was hoping to reduce the amount of downloaded data during git clone because it seems that git was still downloading them despite them being in lfs now. My actions resulted in doubling the amount of commits in repository. It is bad, but it shouldn't hurt anyone very much. I've learned my lesson and never going to do this once again.