Code Optimization for Speed - Rust Libraries, Code Inspection

Dear Rust Devs,

In my C days we could dissasemble code and even replace pieces with raw assembly code for speed.

We could also measure the time it took for every little piece of code, and optimize it, meaning I could literally see on a code profiler the time it took for a function call, or a chunk of code to execute, this way games, and utilities were built to fit in little RAM, with processors that would now be considered toys.

My question is what tools do we have today in the IC to do these things:

  • WASM code optimization
  • Inspect the code we produce when we compile Rust so we can make it faster

I am interested in this, since I see many applications were speed would provide a clear advantage for the app, and for the users.

Thanks for any tips!

3 Likes