dtolnay/watt

Hand off code to a preinstalled optimized runtime if available

Aperta

#2 aperta il 14 ott 2019

 (33 commenti) (2 reazioni) (0 assegnatari)Rust (31 fork)github user discovery
help wanted

Metriche repository

Star
 (1522 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

From some rough tests, Watt macro expansion when compiling the runtime in release mode is about 15x faster than when the runtime is compiled in debug mode.

Maybe we can set it up such that users can run something like cargo install watt-runtime and then our debug-mode runtime can detect whether that optimized runtime is installed; if it is, then handing off the program to it.

Guida contributor