File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -177,18 +177,18 @@ Compression
177177You can modify the compression algorithm and compression level used during tracing
178178with the environment variables LAVATUBE_COMPRESSION_TYPE and LAVATUBE_COMPRESSION_LEVEL.
179179
180- The types are (value zero is reserved for now)
180+ The types are (value zero is reserved for now, density is the default )
1811811 . Density
1821822 . LZ4
183183
184- For Density, the possible levels are (zero means use default)
184+ For Density, the possible levels are (zero means use default, which is Cheetah )
185185
1861861 . Chameleon
1871872 . Cheetah
1881883 . Lion
189189
190190For LZ4, higher levels means more compression and slower execution. Zero means
191- use default.
191+ use the default, which is level one (highest performance, worst compression) .
192192
193193Further reading
194194===============
Original file line number Diff line number Diff line change @@ -209,9 +209,9 @@ void file_writer::serializer()
209209buffer file_writer::compress_chunk (buffer& uncompressed)
210210{
211211 const uint64_t header_size = sizeof (uint64_t ) * 2 ;
212- uint64_t compressed_size;
213- uint64_t was_written;
214- uint64_t was_read;
212+ uint64_t compressed_size = 0 ;
213+ uint64_t was_written = 0 ;
214+ uint64_t was_read = 0 ;
215215 if (p__compression_type == LAVATUBE_COMPRESSION_DENSITY)
216216 {
217217 compressed_size = density_compress_safe_size (uncompressed.size ()) + header_size;
You can’t perform that action at this time.
0 commit comments