Commit 32ca194
authored
Invert compression ratio in
compression ratio is often
[defined](https://en.wikipedia.org/wiki/Data_compression_ratio#Definition)
as `before / after` ("higher is better"), that's also what we do in the
BtrBlocks compressor, so it seems like making it consistent across the
codebase makes sense. ~I thought there's another place we use the term,
but I couldn't find it.~ I think it was when we store the previous
chunk's compression ratio, got it before merging.BtrBlocksCompressedWriter (#2839)1 parent 16b312f commit 32ca194
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 149 | + | |
| 150 | + | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
155 | | - | |
| 154 | + | |
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
| |||
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
177 | | - | |
| 176 | + | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
| |||
0 commit comments