4 ms·
How much larger is the binary after rewriting it in Rust?
by xigoi 2y ago
How much larger is the binary after rewriting it in Rust?
- maleldil 2y agoThe Rust version (4.0.0) has 73k lines of Rust, builds in 1m34s, and the binary is 4.3 MB. The C++ version (3.7.1) has 55k lines of C++, builds in 1m8s, and the binary is 2.4 MB. Both were built with CMake with default settings on a MacBook with M1 Pro. So, the new binary is 1.8x in size and takes 1.4x of the time to build.