4 ms·
> On the other hand, if we allow e.g. Rc into our codebases, we can do these patterns just fine, though there is a performance hit. Interesting... I was using
by cranky908canuck 4y ago
> On the other hand, if we allow e.g. Rc into our codebases, we can do these patterns just fine, though there is a performance hit.
Interesting... I was using one of the Project Euler problems as an exercise for learning Rust; I found that Rc actually improved performance (guess: by eliminating a lot of copies/moves as things went in and out of scope).
- deleted 4y ago[deleted]
- eximius 4y agoMaybe you should have been using more immutable references? But I'm actually curious why the compiler would be making many copies after optimization passes. Release builds or debug builds?