Can anyone share tips for Optimize coding in Rust

General advice to all nauplii (new Rustaceans):
unsafe is a very sharp knife with limited utility. Do not use it until you have a lot of experience in Rust. Even using unsafe for FFI is hazardous. Using it elsewhere is seldom warranted until after a safe version of the code is already debugged and working. See this recent discussion of where use of unsafe may be warranted, and where it is not.

3 Likes