dom96 / binary_size

21 stars 5 forks source link

Make go binary smaller #12

Closed lu4p closed 2 years ago

lu4p commented 5 years ago

Added the -w ldflag to strip debug info from binary. $ go tool link ... -s disable symbol table ... -w disable DWARF generation ...

lu4p commented 4 years ago

about 1.4 MB vs 1.6 MB

dom96 commented 2 years ago

See the "Criteria" in the readme. In fact, we should probably remove the existing Go compilation flag.