My general policy for by-value vs by-ref arguments in Rust is to take anything bigger than one register on 64-bit by reference. It might not always be 100% optimal on every architecture, but LLVM usually optimizes it, and it’s an easy and consistent rule to remember.
-
-
My own rule is usually “larger than two usize”. Oh also note that things such as Option<usize> are also represented as pairs of scalars.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.