[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs