Commit Graph
165 Commits
Author SHA1 Message Date
Timofey Solomko c02c40fdb0 United two cycles through lengths array. Thus, there is no need for symbol property in HuffmanLength. Also added dots to the end of comments. 2016-12-04 22:25:19 +03:00
Timofey Solomko f98b96dd7b Removed rewind function. 2016-12-04 20:25:11 +03:00
Timofey Solomko c09d108e30 tree property of HuffmanTree now stores only codes. findNextSymbol now returns Int instead of HuffmanLengths. 2016-12-04 19:58:41 +03:00
Timofey Solomko 892b2c9ccc HuffmanTable renamed to HuffmanTree. Its properties are now private. 2016-12-04 19:49:53 +03:00
Timofey Solomko 10035700a7 Removed lengths property of HuffmanTable. v1.2.0-test 2016-12-04 19:42:34 +03:00
Timofey Solomko 3b4f000606 Removed HuffmanLength.symbol. Renamed HuffmanLength.reversedSymbol into symbol. 2016-12-04 19:38:43 +03:00
Timofey Solomko 4eda2568c5 reversedTree renamed to tree. 2016-12-04 19:32:19 +03:00
Timofey Solomko 164df17935 Removed unused tree structure in HuffmanTable. 2016-12-04 19:31:16 +03:00
Timofey Solomko 0b839f4d2f Additionally simplified usage of findNextSymbol. 2016-12-04 19:28:57 +03:00
Timofey Solomko fd8786a080 Made changes so bzip2 now also works. 2016-12-04 19:25:28 +03:00
Timofey Solomko ecc626abf5 Simplified findNextSymbol usage and added a new way of finding a symbol (with tree) for .reversed bitOrders. 2016-12-04 15:55:34 +03:00
Timofey Solomko 927da2d6ae Finally, found a way to create correct huffman trees. Also removed remains of last attempts. 2016-12-04 15:24:09 +03:00
Timofey Solomko 4ae8dad3d4 Another attempt of tree creation. Note that first leafs in a tree a nils. 2016-12-04 13:29:36 +03:00
Timofey Solomko 93f3509c97 Implemented findnextsymbol with tree structure. It seems to not work properly. 2016-12-03 12:08:14 +03:00
Timofey Solomko 34ab6a4eb7 Added creation of tree-like structure for Huffman tables. 2016-12-02 22:01:49 +03:00
Timofey Solomko 9ff23a9311 Reverted last comment. 2016-12-01 22:16:41 +03:00
Timofey Solomko 491395a882 Added some things to test out codeclimate. 2016-12-01 21:00:06 +03:00
Timofey Solomko 206f3148ec The real job is now done only with data with pointer objects so there is no need for startPoint property of serviceInfos. 2016-11-26 15:40:40 +03:00
Timofey Solomko 9d099ec120 Added method which gets one byte from data with pointer. 2016-11-26 15:39:20 +03:00
Timofey Solomko 6938cad386 Preparations for 1.1.2. 2016-11-22 23:05:58 +03:00
Timofey Solomko c355e46b6c Removed «performance_test» and updated copyright. 2016-11-22 22:46:04 +03:00
Timofey Solomko 51ea4dae6d Updated example code for spm in readme. 2016-11-22 22:42:38 +03:00
Timofey Solomko 05c6a12e57 Fixed mtime problem in gzip tests. 2016-11-21 21:44:09 +03:00
Timofey Solomko 2ae6a7b252 Added new way to read bytes and used it in deflate uncompressed blocks. 2016-11-21 20:17:27 +03:00
Timofey Solomko 3d30a63f57 Removed extended attributes from deflate files. 2016-11-21 20:16:53 +03:00
Timofey Solomko 37fa0ae51f Enable git lfs in travis. 2016-11-21 20:01:08 +03:00
Timofey Solomko 91e0bcc3cd Reorganized tests so deflate algorithm is now tested only one time. 2016-11-21 19:31:28 +03:00
Timofey Solomko 1aa9c44bbb Added correct lfs tracking. 2016-11-21 19:30:22 +03:00
Timofey Solomko 0962abd0a9 Removed wrong tracked lfs files. 2016-11-21 19:29:58 +03:00
Timofey Solomko 5a458276c3 Temporary removed bz2 and answer files. 2016-11-21 19:27:59 +03:00
Timofey Solomko 4147ef78d9 Enabled lfs for some files (which can be big enough). 2016-11-21 19:26:52 +03:00
Timofey Solomko 9123b24e85 ServiceInfos of Gzip and Zlib are now Equatable. 2016-11-21 19:23:27 +03:00
Timofey Solomko e2fbf3da9f Fixed a problem with unnecessary skipping of bits (causing nlength and length problem). 2016-11-20 23:27:22 +03:00
Timofey Solomko 49c6339a22 Merge branch 'release-1.1.1' into develop 2016-11-20 19:12:51 +03:00
Timofey Solomko df1ed2f685 Preparations for 1.1.1. 2016-11-20 19:10:52 +03:00
Timofey Solomko 55f70ad9c2 Travis osx now matches mine (hopefully, it will now build carthage archive). v1.1.1-test 2016-11-20 18:45:07 +03:00
Timofey Solomko c48a39abed Added a section about performance to README. 2016-11-20 18:16:20 +03:00
Timofey Solomko 117d339a7e Fixed problems with watchOS scheme (missing files). 2016-11-20 18:06:35 +03:00
Timofey Solomko 36517352fc Updated Common podspec. 2016-11-20 17:59:36 +03:00
Timofey Solomko ee2110d21e Fixed additional problem with Swift Package Manager. 2016-11-20 17:59:22 +03:00
Timofey Solomko 26ce09325d Moved common swift files so swift package manager won’t complain. 2016-11-20 17:56:09 +03:00
Timofey Solomko d378eb3270 Import module in tests not as testable. 2016-11-20 17:54:54 +03:00
Timofey Solomko 6dfa85af83 Preparations for 1.1.0. 2016-11-19 20:44:27 +03:00
Timofey Solomko 789a863798 Added docs for Bzip2. 2016-11-19 20:24:14 +03:00
Timofey Solomko 170b92a7d7 Small performance improvement in DataWithPointer.bits. Also disabled bzip2_test7. 2016-11-19 20:11:57 +03:00
Timofey Solomko 9e8678a8c3 Added subspecs. 2016-11-19 18:30:22 +03:00
Timofey Solomko d795e208e3 Increased performance of deflate when compressed file had a lot of repeated bytes. 2016-11-19 18:29:42 +03:00
Timofey Solomko 743bdc6807 Added test with random generated data. 2016-11-19 18:26:37 +03:00
Timofey Solomko 62f187469d Fixed compilation-overflow error on some architectures. 2016-11-19 15:22:28 +03:00
Timofey Solomko 97aab89d0f Reorganized project structure. 2016-11-19 15:21:44 +03:00