Skip to content

build without debug symbols and exclude source from wheels #44

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

Merged
merged 4 commits into from
Mar 20, 2022

Conversation

enkore
Copy link
Member

@enkore enkore commented Jan 17, 2022

branch          size of cp310 wheel    installed size
libssh-0.9.6    6.7M                   24M
strip           2.4M                   7.2M
                -64%                   -70%

stacked on top of #41 due to touching the same files

Fixes #43

(eref 42d478fb6976)

gpg: assuming signed data in 'libssh-0.9.6.tar.xz'
gpg: Signature made Do 26 Aug 2021 14:28:25 CEST
gpg:                using RSA key 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D
gpg: Good signature from "Andreas Schneider <[email protected]>" [unknown]
gpg:                 aka "Andreas Schneider <[email protected]>" [unknown]
gpg:                 aka "Andreas Schneider <[email protected]>" [unknown]
Primary key fingerprint: 8DFF 53E1 8F2A BC8D 8F3C  9223 7EE0 FC4D CC01 4E3D
@enkore
Copy link
Member Author

enkore commented Jan 28, 2022

rebased for CI fix

@@ -47,7 +47,7 @@
]

# _comp_args = ["-ggdb"]
_comp_args = ["-O3"] if not ON_WINDOWS else None
_comp_args = ['-O3', '-g0', '-s'] if not ON_WINDOWS else None
Copy link
Member

Choose a reason for hiding this comment

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

What is -s for here?

Copy link
Member Author

Choose a reason for hiding this comment

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

It behaves similar to stripping afterwards but it's not exactly the same (stripping still reduces size a little bit). -g0 undoes the -g added by setuptools by default.

Copy link
Member

Choose a reason for hiding this comment

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

Cool. Might be worth checking if -Os instead of -O3 reduces size any further. Doubt the O3 optimisations are making much of a difference in speed.

@pkittenis pkittenis merged commit ca3bc23 into ParallelSSH:master Mar 20, 2022
@enkore enkore deleted the strip branch November 9, 2022 16:06
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.

Remove debug symbols from embedded libssh build in wheels
2 participants