Compress the languages data by apocelipes · Pull Request #468 · boyter/scc
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 310
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters