-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deflate_compress: rewind blocks in near-optimal compressor
The block splitting algorithm works by examining successive chunks of data and ending the block when a chunk differs significantly from the rest of the block. Currently, the data chunk where the change is detected is included in the block, which is suboptimal -- after all, we know that it's different from the rest of the block. Better results could be achieved by ending the block just before the chunk. Implement this in the near-optimal compressor. This slightly improves its compression ratio. Note: I also tested an implementation of this for the lazy compressor. It improves compression ratio too, but it doesn't seem worthwhile there from a performance and complexity standpoint.
- Loading branch information
Showing
1 changed file
with
168 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters