Skip to content

flate: Improve level 5+6 compression - #656

Merged
klauspost merged 1 commit into
masterfrom
skip-forward-flate
Sep 7, 2022
Merged

flate: Improve level 5+6 compression#656
klauspost merged 1 commit into
masterfrom
skip-forward-flate

Conversation

@klauspost

Copy link
Copy Markdown
Owner

Skip 2 bytes when doing end-of-match search.

This allows better matches to be picked up further forward, adding up to 2 literals, but giving a better match.

Level 5:

nyc: 779171549 -> 767765165
github-june: 943488021 -> 938777887
github-ranks: 435111686 -> 435008334
sofia: 3083510553 -> 3048677443

level6, nyc: 768119006 -> 753545897

Performance unchanged.

Skip 2 bytes when doing end-of-match search.

This allows better matches to be picked up further forward, adding up to 2 literals, but giving a better match.

Level 5:

nyc: 779171549 -> 767765165
github-june: 943488021 -> 938777887
github-ranks: 435111686 -> 435008334
sofia: 3083510553 -> 3048677443

level6, nyc: 768119006 -> 753545897

Performance unchanged.
@klauspost
klauspost merged commit b95ee96 into master Sep 7, 2022
@klauspost
klauspost deleted the skip-forward-flate branch September 7, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant