October 29, 2020
Guide to LTO between Rust and C/C++
I use Rust in one of my research projects. The project was originally developed in C++, and because C++ is bad we decided to add new features primarily in Rust.
Calling Rust from C++ is simple and easy (thanks to the excellent cxx project), but we soon find some performance regressions that didn’t appear in the C++ code. Specifically, we see many tiny Rust functions in flamegraph that wouldn’t surface up if written in C++.
Read more