Overview
Comment: | Allocate the predictor's decompression buffer per Read call. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
f06f8cd058563e2a8fd404c3d1578857 |
User & Date: | spaskalev on 2014-12-25 08:48:58 |
Other Links: | manifest | tags |
Context
2014-12-26
| ||
15:50 | Initial implementation of package mtf - a move-to-front transform. check-in: ad5c25d9ab user: spaskalev tags: trunk | |
2014-12-25
| ||
08:48 | Allocate the predictor's decompression buffer per Read call. check-in: f06f8cd058 user: spaskalev tags: trunk | |
01:25 | Removed pdc's output buffer when decompressing as io.Copy uses a sufficiently-large buffer internally. check-in: 2b1ed8e45e user: spaskalev tags: trunk | |
Changes
Modified src/0dev.org/bits/bits.go from [7a154cae58] to [16bc764710].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | - + - + | // Package bits provides various constructs that work with bits package bits import ( "strconv" ) |
︙ |
Modified src/0dev.org/bits/bits_test.go from [255f42be62] to [ed7ac493ff].
1 2 3 4 5 6 7 8 9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | - + | package bits import ( "strconv" "testing" ) func TestHamming(t *testing.T) { for i := 0; i < 256; i++ { |
︙ |
Modified src/0dev.org/predictor/predictor.go from [3161320c11] to [4f6ff0f55a].
︙ | |||
82 83 84 85 86 87 88 | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | - - - - - + + + + - + - + - + - + - + - + - + - + - + - + - + | } // Returns an io.Reader implementation that wraps the provided io.Reader // and decompresses data according to the predictor algorithm func Decompressor(reader io.Reader) io.Reader { var dcmp decompressor dcmp.source = reader |
︙ |