Boost logo

Boost :

Subject: Re: [boost] [uuids] On boost::uuids::uuid operator == performance.
From: Peter Dimov (pdimov_at_[hidden])
Date: 2012-04-16 08:32:15


Mathias Gaunard wrote:
> The code above calls the std::_Equal symbol, not memcmp.
> The code given for std::_Equal also does not contain a jump to any other
> function.

memcmp is inlined into _Equal. Replacing std::equal with memcmp yields the
same assembly code, this time inlined directly at the point where == is
invoked.


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