Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Don't duplicate DefaultPaths in every source file. #1659

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

kacf
Copy link
Member

@kacf kacf commented Aug 27, 2024

This simple change saves more than 12K in the final binary.

For future reference, using readelf -s to look for duplicate symbols is a useful way to hunt for such space waste. I haven't looked deeply at it, but starting by looking in object files for duplicated LOCAL symbols without WEAK is a good beginning. I just found this one randomly though, and I cannot dive deeper into this rabbit hole now.

This simple change saves more than 12K in the final binary.

For future reference, using `readelf -s` to look for duplicate symbols
is a useful way to hunt for such space waste. I haven't looked deeply
at it, but starting by looking in object files for duplicated `LOCAL`
symbols without `WEAK` is a good beginning. I just found this one
randomly though, and I cannot dive deeper into this rabbit hole now.

Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
@mender-test-bot
Copy link

@kacf, Let me know if you want to start the integration pipeline by mentioning me and the command "start pipeline".


my commands and options

You can trigger a pipeline on multiple prs with:

  • mentioning me and start pipeline --pr mender/127 --pr mender-connect/255

You can start a fast pipeline, disabling full integration tests with:

  • mentioning me and start pipeline --fast

You can trigger GitHub->GitLab branch sync with:

  • mentioning me and sync

You can cherry pick to a given branch or branches with:

  • mentioning me and:
 cherry-pick to:
 * 1.0.x
 * 2.0.x

@kacf kacf requested a review from lluiscampos August 27, 2024 08:09
Copy link
Contributor

@lluiscampos lluiscampos left a comment

Choose a reason for hiding this comment

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

Thank you for the tip! 🚀

@kacf kacf merged commit af45f64 into mendersoftware:master Aug 28, 2024
19 checks passed
@kacf kacf deleted the space_waste branch August 28, 2024 14:32
@mender-test-bot
Copy link

Hello 😺 This PR contains changelog entries. Please, verify the need of backporting it to the following release branches:
4.0.x (release 3.7.x) - 🤖 🍒

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.

3 participants