dropbox / rust-brotli

Brotli compressor and decompressor written in rust that optionally avoids the stdlib
https://dropbox.tech/infrastructure/-broccoli--syncing-faster-by-syncing-less
BSD 3-Clause "New" or "Revised" License
797 stars 83 forks source link

Use proper `self` for ZopfliCostModel and ZopfliNode #166

Closed nyurik closed 3 months ago

nyurik commented 3 months ago

Note that I intentionally did not move functions together - this can be done later. At this point, I am doing minimal changes to convert everything to proper structs

Make sure to hide whitespaces when diffing

danielrh commented 3 months ago

The cost modeling did get easier to read with this change.