Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flate: Add limited window compression #843

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Commits on Aug 1, 2023

  1. flate: Add limited window compression

    Adds a medium compressor that can operate with limited window size.
    
    Exposed in gzip outside deflate for now.
    
    Example sizes:
    
    ```
    === RUN   TestFileWindow/32
        gzip_test.go:349: size: 82504 bytes
    === RUN   TestFileWindow/64
        gzip_test.go:349: size: 75350 bytes
    === RUN   TestFileWindow/128
        gzip_test.go:349: size: 70668 bytes
    === RUN   TestFileWindow/256
        gzip_test.go:349: size: 69276 bytes
    === RUN   TestFileWindow/512
        gzip_test.go:349: size: 68327 bytes
    === RUN   TestFileWindow/1024
        gzip_test.go:349: size: 67876 bytes
    === RUN   TestFileWindow/2048
        gzip_test.go:349: size: 40900 bytes
    === RUN   TestFileWindow/4096
        gzip_test.go:349: size: 38684 bytes
    === RUN   TestFileWindow/8192
        gzip_test.go:349: size: 36263 bytes
    === RUN   TestFileWindow/16384
        gzip_test.go:349: size: 35434 bytes
    === RUN   TestFileWindow/32768
        gzip_test.go:349: size: 34654 bytes
    --- PASS: TestFileWindow (0.03s)
    ```
    
    Limited testing done.
    klauspost committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    7df2998 View commit details
    Browse the repository at this point in the history