Boost logo

Boost :

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


Michael Kochetkov wrote:
> inline
> bool comp(const boost::uuids::uuid& l, const boost::uuids::uuid& r) {
> return *reinterpret_cast<const uint32_t*>(l.data) ==

...

I could've sworn that memcmp is smart enough on MSVC to do these unrolled
DWORD compares for small sizes, but it isn't. I wonder why I got that
impression.


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