Skip to content

Conversation

@dcantah
Copy link
Contributor

@dcantah dcantah commented Jan 1, 2026

Swift release builds don't strip, and we don't need the symbols. 240Mi -> 70

    FILE SIZE        VM SIZE
 --------------  --------------
  26.9%  64.4Mi  50.7%  37.3Mi    [258604 Others]
  16.8%  40.2Mi   0.0%       0    [section .debug_info]
  13.0%  31.1Mi  42.2%  31.1Mi    icudt74_dat
  11.2%  26.9Mi   0.0%       0    [section .debug_str]
   7.0%  16.7Mi   0.0%       0    [section .debug_loc]
   6.4%  15.4Mi   0.0%       0    [section .debug_ranges]
   4.9%  11.6Mi   0.0%       0    [section .debug_names]
   4.5%  10.7Mi   0.0%       0    [section .debug_line]
   2.4%  5.72Mi   0.0%       0    [section .debug_loclists]
   1.4%  3.28Mi   0.0%       0    [section .debug_str_offsets]
   1.2%  2.80Mi   0.0%       0    [section .debug_abbrev]
   0.7%  1.61Mi   0.0%       0    [section .debug_addr]

@dcantah dcantah force-pushed the strip-binaries branch 4 times, most recently from e8b60bb to a7ea283 Compare January 1, 2026 16:08
We don't need the symbols, and it gives us a 70% reduction in
size...

    FILE SIZE        VM SIZE
 --------------  --------------
  26.9%  64.4Mi  50.7%  37.3Mi    [258604 Others]
  16.8%  40.2Mi   0.0%       0    [section .debug_info]
  13.0%  31.1Mi  42.2%  31.1Mi    icudt74_dat
  11.2%  26.9Mi   0.0%       0    [section .debug_str]
   7.0%  16.7Mi   0.0%       0    [section .debug_loc]
   6.4%  15.4Mi   0.0%       0    [section .debug_ranges]
   4.9%  11.6Mi   0.0%       0    [section .debug_names]
   4.5%  10.7Mi   0.0%       0    [section .debug_line]
   2.4%  5.72Mi   0.0%       0    [section .debug_loclists]
   1.4%  3.28Mi   0.0%       0    [section .debug_str_offsets]
   1.2%  2.80Mi   0.0%       0    [section .debug_abbrev]
   0.7%  1.61Mi   0.0%       0    [section .debug_addr]
return stats
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Context: Seems github by default creates a merge commit when checking out the repo for CI. hawkeye then checks what date the merge commit was made and gets tripped up and modifies the files in the last commit (before the one in this PR) to be 2025-2026. We could change to just checking out the commit directly, but I don't want to do that in this change. Just slightly modifying these so CI and local agree is less hassle for now.

@dcantah dcantah merged commit cbb48bc into apple:main Jan 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants