# InternPool: add an int_u8 value encoding · gitcafe/zig

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

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

Visibility: public

Requested revision: 2f9b7dc1023e9ff21574b559e22265db65e00d2d

Requested commit: 2f9b7dc1023e9ff21574b559e22265db65e00d2d

Commit: 2f9b7dc1023e9ff21574b559e22265db65e00d2d

Tree: df09a315169c8e9485057349ee4a007a9a2af2b8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
InternPool: add an int_u8 value encoding

On a simple input file, this had a total savings of 21% in the
InternPool:

Before:
    int_positive: 427 occurrences, 8975 total bytes
After:
    int_positive: 258 occurrences, 5426 total bytes
    int_u8: 169 occurrences, 845 total bytes

```

## Parents

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

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