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

Reduce liblimbo_sqlite3.a size #715

Merged
merged 2 commits into from
Jan 17, 2025
Merged

Reduce liblimbo_sqlite3.a size #715

merged 2 commits into from
Jan 17, 2025

Conversation

penberg
Copy link
Collaborator

@penberg penberg commented Jan 16, 2025

This reduces liblimbo_sqlite3.a size from 37M to 15M.

Refs #714

@penberg penberg changed the title cargo: Omit bitcode from generated binaries cargo: Disable LTO.. Jan 16, 2025
@penberg penberg changed the title cargo: Disable LTO.. cargo: Disable LTO... Jan 16, 2025
@penberg penberg changed the title cargo: Disable LTO... Reduce liblimbo_sqlite3.a size Jan 16, 2025
..to reduce `liblimbo_sqlite3.a` size from 37M to 20M. As it turns out,
LLVM emits its bitcode into static libraries when LTO is enabled to be
"more aggressive" in optimizations

Refs #714
...reduces size of `liblimbo_sqlite3.a` to 15 MB.

Suggested by @psvri
@penberg penberg closed this in 67b4b24 Jan 17, 2025
@penberg penberg merged commit 67b4b24 into main Jan 17, 2025
37 checks passed
@penberg penberg deleted the shrink-staticlib branch January 17, 2025 11:42
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