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
Related Topics: Rust
1 comments
  • なんとなくRustのコンパイルはメモリがキツそうなのは感じてたけど、Huge pageをonにするだけでこんなに効果があるとは。メモリ余ってるし使ってみようかな。