News for hackers. Stuff that matters.
Re:Should Small Rust Structs be Passed by-copy or by-borrow? by baby on Sunday January 01, 2023 @03:50AM (#34204766)
This is premature optimization imo. Unless you’re using par_iter
Re:Should Small Rust Structs be Passed by-copy or by-borrow? by josephg on Sunday January 01, 2023 @04:41AM (#34205007)
Without knowing the domain, you have no way of knowing that. Eg in the rendering pipeline in the React codebase, I’d be extremely leery of using map/filter/reduce because of how performance sensitive that code is.