Skip to content

enable gc-section for lighter application#243

Closed
atsju wants to merge 1 commit intogithubdoe:masterfrom
atsju:JST/gc
Closed

enable gc-section for lighter application#243
atsju wants to merge 1 commit intogithubdoe:masterfrom
atsju:JST/gc

Conversation

@atsju
Copy link
Collaborator

@atsju atsju commented Aug 22, 2025

These flags removes unused functions and variables from final binary. Makes it lighter.
It's safe, I have used those professionally for years.

Wa can still clean the code for readability #242

@atsju atsju requested review from githubdoe and gr5 August 22, 2025 09:16
@atsju
Copy link
Collaborator Author

atsju commented Aug 22, 2025

On linux there is a substantial gain but on Windows this results in binary growth.
Probably the additional separate sections make it grow more than what is deleted because unused.
I suppose it's not worth adding this.

@atsju atsju closed this Aug 22, 2025
@atsju atsju deleted the JST/gc branch December 23, 2025 14:02
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.

1 participant

Comments