In the previous section, we optimized the source code, but there are also alternative techniques of optimization by using special compilation flags and third-party tools. In this section, we will cover some of these optimization techniques. We will talk a little about reducing sizes, benchmarks, and profiling Rust code.
Optimization is a creative topic. There is no special recipe for optimization, but in this section, we will create a small microservice that generates an index page with the current time, and then we will try to optimize it. With this example, I hope to show you some optimization ideas for your projects.