Comments (3)
My experience with these options as a Seed maintainer - some algorithms with s
/z
can be almost 2x slower, but the app can be also 2x smaller (vs 3
).
So it really depends on the specific use-case - you should write at least some benchmarks and try multiple options.
from min-sized-rust.
@frederikhors This repo is concerned with helping Rust developers generate the smallest possible binary size at the expense of all else. Many of the recommendations in this repo would not make sense unless you were trying to optimize soley for size.
For what the opt-level
's specifically do, I do agree that the cargo docs could be improved but I suggest that an issue be opened in that repo to request. That question is mostly for rustc / LLVM.
from min-sized-rust.
@johnthagen rust-lang/cargo#8031
from min-sized-rust.
Related Issues (20)
- Add note about monomorphisation HOT 6
- How to min size on windows? HOT 8
- Unable to strip information HOT 3
- Update strip documentation for upcoming stable Cargo release
- Custom ld script HOT 4
- Identical code folding HOT 2
- Mention stripping additional sections to slightly reduce binary size HOT 2
- Port away from actions-rs CI action
- Using syscalls and ld script HOT 5
- Add note about cross compiling via nightly HOT 2
- Add a reference to "A very small Rust binary indeed" HOT 1
- cargo-unused-features HOT 1
- Feature request: Show effectiveness of each step HOT 11
- libc build failure on macos-12 and Rust 1.28 & 1.30
- `rust-musl-builder` is currently unmaintained HOT 1
- -Zlocation-detail=none HOT 2
- min sized -lib (.a)
- Local file path strings embedded in binary HOT 7
- Is there no way to use --gc-sections in rust? HOT 4
- Strip is now default HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from min-sized-rust.