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

ref: size-optimize the relay python library #3610

Merged
merged 1 commit into from
May 16, 2024

Conversation

asottile-sentry
Copy link
Member

on linux this reduces the installed library size from 240MB to 14MB (might actually be smaller but I'm impatient -- that number was with debug = true still accidentally on)

@asottile-sentry asottile-sentry requested a review from a team as a code owner May 16, 2024 13:43
@asottile-sentry
Copy link
Member Author

in my tests debug and strip made not terribly much difference -- a handful of MB at most. lto made most of the improvement (almost certainly dead code elimination)

@asottile-sentry asottile-sentry force-pushed the asottile-size-optimize-librelay branch from 51e95a0 to cde1565 Compare May 16, 2024 13:45
@asottile-sentry
Copy link
Member Author

the downside is this makes the build take about 2x -- but I suspect that can be won back by switching the macos builders to the macos arm runners

on linux this reduces the installed library size from 240MB to 14MB
@asottile-sentry asottile-sentry force-pushed the asottile-size-optimize-librelay branch from cde1565 to 9116167 Compare May 16, 2024 14:29
@asottile-sentry
Copy link
Member Author

hooray after switching over the macos builders it is no longer slower 🎉

@asottile-sentry asottile-sentry merged commit e75abd4 into master May 16, 2024
42 checks passed
@asottile-sentry asottile-sentry deleted the asottile-size-optimize-librelay branch May 16, 2024 15:00
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