-
러스트Rust] Compile컴파일_시간은 늘어나지만 실행 속도 올리는 최적화Optimization코딩Coding/Rust❤️Optimization❤️ 2022. 4. 8. 20:40728x90
If you want to optimize your code, add a -O argument to rustc:
rustc -O hw.rs
The act of optimization will cause Rust to invoke the LLVM optimizer prior to linking. This will produce faster executable code at the expense of compile time.
출처 :
https://locka99.gitbooks.io/a-guide-to-porting-c-to-rust/content/compiling_and_linking/
Compiling and Linking in More Detail · A Guide to Porting C and C++ code to Rust
locka99.gitbooks.io
다른 글 보기
rust컴파일 속도 더 빠르게 만들기zld(# `brew install michaeleisel/zld/zld`
https://economiceco.tistory.com/12844
rust컴파일 속도 더 빠르게 만들기zld(# `brew install michaeleisel/zld/zld`
.cargo/config.toml 내 프로젝트 폴더에 .cargo폴더 만들어 주고 config.toml파일 만들고 M1MacBook 기준 세팅 [target.aarch64-apple-darwin] rustflags = ["-C", "link-arg=-fuse-ld=/opt/homebrew/bin/zld"] 다..
economiceco.tistory.com
반응형'코딩Coding > Rust❤️Optimization❤️' 카테고리의 다른 글
rust concurrency) Rayon (0) 2022.04.26 Rust] borrow가 있다면 일반 String보다 빠르다.Cow최고 (0) 2022.04.19 Rust]❤️All Algorithm implemented in Rust (0) 2022.04.18 Rust]❤️심도깊게(String &str& 'static str&❤️Converts a slice of bytes)❤️to_string(),⭐️cow (0) 2022.04.17 Reliable optimization for idiomatic Rust- Ferrous System Gmbh(cargo miri) (0) 2022.04.04 Rust]cargo nextest run(일반 test보다 60프로 이상 더 빠름) (0) 2022.03.23 rust컴파일 속도 더 빠르게 만들기zld(# `brew install michaeleisel/zld/zld` (0) 2022.03.17 Rust) zld: a faster linker for macOS (0) 2022.03.17