As i test go compiler remove unused functions (i'm not try to check
compile time, but resulted binary size not changed after i merge all
formats in single package).
сб, 6 окт. 2018 г. в 19:31, T L <tapir....@gmail.com>:
>
> You can make some tests to check the final binary sizes, which will not spend 
> you much time. :)
>
> The official linker does try to remove many unused functions.
> Unused functions really need more time to compile.
>
> On Saturday, October 6, 2018 at 10:08:43 AM UTC-4, Vasiliy Tolstov wrote:
>>
>> Hi!
>> I have some data that can be formatted with json, text and binary form.
>> Does i need to split this on three parts (json, text, binary) to avoid
>> compile time and run time overhead (and disk size of resulted binary)
>> if user want to use only one format (for example binary). Or go
>> compiler remove unused functions and not include them in resulted
>> binary? (if i don't use json Marshal/Unmarshal full json package not
>> included in my binary)
>> Thanks!
>>
>> --
>> Vasiliy Tolstov,
>> e-mail: v.to...@selfip.ru
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.



-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to