4 ms·
> Here, we do something that is not possible to do in Rust or C - we safely stack-allocate the intermediate value, There's no heap allocation in the Rust nor C
by steveklabnik 9y ago
> Here, we do something that is not possible to do in Rust or C - we safely stack-allocate the intermediate value,
There's no heap allocation in the Rust nor C code.
I haven't looked into the codegen to see what's different here.
- steveklabnik 9y agoSome more details here, very interesting! https://www.reddit.com/r/rust/comments/7m99wo/outperforming_rust_with_functional_programming/ https://www.reddit.com/r/rust/comments/7m99wo/outperforming_...