
21 Jan
2025
21 Jan
'25
2:14 p.m.
Matt Borland wrote:
Taking decimal types by reference instead of by value - fundamentally the decimalXX types are std::uint32_t, std::uint64_t, and struct { uint64_t hi, uint64_t lo }. I don't think you'll see any performance improvements with those.
Trivially copyable types up to 2*uint64_t in size are passed in registers (on non-Windows x86-64), so pass by reference will be a performance regression, probably a significant one.