[tor-bugs] #12649 [Tor bundles/installation]: Omit symbol tables and debugging from golang binaries

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jul 17 22:45:01 UTC 2014


#12649: Omit symbol tables and debugging from golang binaries
------------------------------------------+--------------------------------
     Reporter:  dcf                       |      Owner:  erinn
         Type:  enhancement               |     Status:  needs_review
     Priority:  normal                    |  Milestone:
    Component:  Tor bundles/installation  |    Version:
   Resolution:                            |   Keywords:
Actual Points:                            |  TorBrowserTeam201407
       Points:                            |  Parent ID:  #12387
------------------------------------------+--------------------------------
Changes (by dcf):

 * status:  new => needs_review


Comment:

 Here is the effect on bundle size, comparing both go1.2 versus
 [[ticket:12648|go1.3]] and `-s` versus not.
 I built on top of [https://gitweb.torproject.org/builders/tor-browser-
 bundle.git/commit/5b71d6072028e0d582ad7405597fd615586a0734
 5b71d6072028e0d582ad7405597fd615586a0734] with attachment:0001-Use-s-when-
 linking-golang-programs.patch and attachment:0001-Upgrade-go-
 to-1.3.patch:ticket:12648.

 ||        || go1.2           || go1.3                 || go1.2 `-s`
 || go1.3 `-s`            ||
 ||linux32 || 30,480,760\\(−0)|| 30,350,672\\(−130,088)||
 29,761,556\\(−719,204)|| 29,921,656\\(−559,104)||
 ||linux64 || 31,974,896\\(−0)|| 31,883,816\\(−91,080||
 31,255,624\\(−719,272)|| 31,411,332\\(−563,564)||
 ||mac     || 34,122,441\\(−0)|| 33,925,485\\(−196,956)||
 33,871,833\\(−250,608)|| 33,925,228\\(−197,213)||
 ||windows || 29,524,997\\(−0)|| 29,432,798\\(−92,199)||
 28,650,011\\(−874,986)|| 28,831,524\\(−693,473)||

 Here's the difference in the uncompressed size of the meek-client binary.

 ||        || go1.2          || go1.3                  || go1.2 `-s`
 || go1.3 `-s`             ||
 ||linux32 || 6,574,768\\(−0)|| 5,105,304\\(−1,469,464)||
 3,188,288\\(−3,386,480)|| 3,578,368\\(−2,996,400)||
 ||linux64 || 7,918,328\\(−0)|| 6,332,256\\(−1,586,072)||
 4,027,456\\(−3,890,872)|| 4,539,616\\(−3,378,712)||
 ||mac     || 6,502,636\\(−0)|| 5,053,240\\(−1,449,396)||
 5,388,524\\(−1,114,112)|| 5,053,240\\(−1,449,396)||
 ||windows || 6,075,392\\(−0)|| 5,192,192\\(−883,200)||
 3,223,040\\(−2,852,352)|| 3,611,136\\(−2,464,256)||

 go1.2 with `-s` has the biggest savings. go1.3 with `-s` doesn't save
 quite as much, but still better than either version without `-s`. For
 whatever reason, `-s` didn't seem to have an effect on mac with go1.3.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12649#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list