Compress the languages data by apocelipes · Pull Request #468 · boyter/scc

Skip to content

Navigation Menu

Sign in

Appearance settings

Comments

Conversation

There is a lot of repeated content in languages.json, so using
gzip compression can significantly reduce the size of the compiled
binary file.

On my windows machine with go1.22, it shows:

- "processor/constants.go": 170k -> 20k, 150k reduced.
- scc binary file: 8909k -> 8836.5k, 72.5k reduced.

Gzip is very fast, as hyperfine reports there's nearly no harm on
the performance.