I have made one example of using actix-web and sqlx in simple ToDo REST API. I have got this kind of comment:
"The todo-api example ( having just skimmed it over ) is fairly inefficient. It's doing pretty big allocation dozens and dozens of times for the /todos route."
The comment wasn't with bad intention, but it is without details that I could use to learn how to do it better/properly/efficiently.
I wish to learn Rust especially to build REST API's using actix-web and sqlx. I learning it in my free time, so it goes slow but not bad... I have a lot of experience in building web applications but mostly in script languages...
If anyone could help me with some points on places that should be done differently so I can go and learn how to do it more efficiently, that would be awesome.
Thanks in advance.