Hi, 

How efficient Go linker is in detecting unused things (e.g., functions) in 
a package during build and remove them from the compiled binary? 

To extremely simplify the case, say 

- I have a package that contains 10 individual functions, and each of them 
will compile to 10K in binary size. 
- Then a program calls one single function from such package. 

Will the compiled binary executable be 10K more in size, because of calling 
that one single function, or 100K more? 

I.e., will using a tiny portion of a big package cost me the whole big 
package in compiled binary size, or only the tiny portion that I used?

thx

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/cb880ac4-394c-443b-941e-201fc282ddc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to