I think that for 1.21 the biggest difference is that we aren't
including debug info with the binaries in
$GOROOT/pkg/tool/$GOOS_$GOARCH.  That change was made in
https://go.dev/cl/475378.

Ian

Ian

On Wed, Aug 16, 2023 at 12:46 PM Jeremy Cattone <[email protected]> wrote:
>
> Looks like on-going work, finally completed in 1.21?
>
> https://github.com/golang/go/issues/27151
> On Tuesday, August 15, 2023 at 9:31:41 PM UTC-7 Kurtis Rader wrote:
>>
>> All of the packages are significantly smaller -- not just those for macOS. 
>> So this isn't due to anything specific to the macOS package(s). Looking at 
>> the release notes for Go 1.21.0 I don't see an obvious explanation for the 
>> reduction. Downloading and extracting those two packages shows the contents 
>> have a proportional size difference:
>>
>> > du -sh go1.20.7/ go1.21.0/
>> 264M go1.20.7/
>> 237M go1.21.0/
>>
>>
>> Most of the files and directories are larger in the 1.21.0 release. There 
>> are some notable exceptions. The main one, accounting for most of the 
>> decrease, is the tool directory: This is the `df -k` diff:
>>
>> < 111520    ./pkg/tool/darwin_arm64
>> ---
>> > 80704 ./pkg/tool/darwin_arm64
>>
>>
>>  That is a 3 MB reduction (28%) in the total size of the Go tools. Why are 
>> the Go tools so much smaller? I don't see an obvious answer in the release 
>> notes.
>>
>>
>> On Tue, Aug 15, 2023 at 8:49 PM xie cui <[email protected]> wrote:
>>>
>>>
>>> go1.20.7.darwin-arm64.tar.gzArchivemacOSARM6492MB
>>>
>>> go1.21.0.darwin-arm64.tar.gzArchivemacOSARM6462MB
>>> this size reduce about 30%.
>>> why the size reduce a lot?
>>>
>>> --
>>> 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 [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/golang-nuts/67bb5470-0b40-4a33-9d11-fefa7f6fd7a6n%40googlegroups.com.
>>
>>
>>
>> --
>> Kurtis Rader
>> Caretaker of the exceptional canines Junior and Hank
>
> --
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/90e15ffe-a72c-4714-9c66-798bb0ddab70n%40googlegroups.com.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcW4VRgXp%3DV5UJ_QN2xxQ9kM26Zswn77iQUjnqB5KSvTrQ%40mail.gmail.com.

Reply via email to