Appearance
参考这个教程:johnthagen/min-sized-rust: 🦀 How to minimize Rust binary size 📦 (github.com)
我尝试将 CPP循环队列代码 和 Rust循环队列代码 编译比较,前者默认无参数编译后的大小 190KB(windows + mingw64 + g++)后者无优化是 1.9MB(windows + gcc + rustc),依据上面优化后(仅修改 toml 部分)是 250KB。
参考这个教程:johnthagen/min-sized-rust: 🦀 How to minimize Rust binary size 📦 (github.com)
我尝试将 CPP循环队列代码 和 Rust循环队列代码 编译比较,前者默认无参数编译后的大小 190KB(windows + mingw64 + g++)后者无优化是 1.9MB(windows + gcc + rustc),依据上面优化后(仅修改 toml 部分)是 250KB。