3 ms·
Another real world example, and actually quite relevant to the use case of the original article. Tint and naga are both shader compilers, primarily used for com
by raphlinus 4y ago
Another real world example, and actually quite relevant to the use case of the original article. Tint and naga are both shader compilers, primarily used for compiling WGSL into SPIR-V, MSL, and HLSL so shaders can be used portably. Tint is in C++ and takes 113.6s for a clean compile on M1 Max. Naga, in Rust, is 17s. That includes serde and a bunch of the usual community crates (quote, syn, thiserror, petgraph).
Admittedly Tint is more mature and sophisticated, but both serve the function I need them for.