Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2025-01-21 14:14:11


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk