TechFeed
  • playlist_add_check Channels

Make the Rust compiler 5% faster with this one weird trick
CRANK

TL;DR: On Linux, if you have Transparent Huge Pages enabled, you can try to run cargo with the environment variable MALLOC_CONF="thp:always,metadata_thp:always" for a potential ~5% speed boost.

kobzol.github.io 2 years ago
Related Topics: Rust
arrow_back
open_in_new Open page
https://kobzol.github.io/rust/rustc/2023/10/21/make-rust-compiler-5percent-faster.html
  • Blog
  • Frequently Asked Questions
  • Feedback
  • Terms of service
  • Privacy Policy
  • Posting guidelines
  • Special thanks
  • About Company
© 2025 TechFeed Inc.