# flate.Compress: simplify huffman node comparisons · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8284da2f3d5179d9c3160edd8d167b5169dbe126)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8284da2f3d5179d9c3160edd8d167b5169dbe126

Requested commit: 8284da2f3d5179d9c3160edd8d167b5169dbe126

Commit: 8284da2f3d5179d9c3160edd8d167b5169dbe126

Tree: 812136a96efc135c93c5c270e08eae82a1fc109d

Author: Kendall Condon

Committer: Andrew Kelley

## Message

```
flate.Compress: simplify huffman node comparisons

Instead of comparing each field, nodes are now compared as 32-bit
values where `freq` is in the most significant bits.

```

## Parents

- [d6931b0ff5097edbcb855d78056ac9ecd8d075da](https://git.cafe/gitcafe/zig/commit/d6931b0ff5097edbcb855d78056ac9ecd8d075da?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8284da2f3d5179d9c3160edd8d167b5169dbe126?format=markdown)
