ncdns icon indicating copy to clipboard operation
ncdns copied to clipboard

Binary size is way too big

Open JeremyRand opened this issue 6 years ago • 1 comments

Adding ncdns and dns-prop279 to an Electrum-NMC+txtorcon .tar.xz archive increases the archive's size by 4.6 MiB. (Both Go programs were built for linux/amd64 with Go 1.10.3) This is way too high. It would be highly useful if we could find some way to decrease the binary size here.

JeremyRand avatar Apr 10 '19 01:04 JeremyRand

Looks like building with -ldflags '-s', which is already done by ncdns-repro, cuts the .tar.xz from 4.6 MiB to 2.8 MiB.

JeremyRand avatar Apr 10 '19 01:04 JeremyRand