When profiling my application, I found that a lot of time is spent on clones. I added these as a means to get the code to compile; and now that it works I’d like to audit these clones to see if some can be removed.
Are there any strategies you’ve discovered for finding and removing unnecessary copies? Or is it going to be a fairly manual affair?
I did find https://github.com/Manishearth/rust-clippy/issues/17 but it doesn’t look like it’s merged. I see now as I write this that there are some other relevant clippy lints actually so I’ll check if any of those highlight problems.
Thanks in advance,