|
Boost : |
Subject: Re: [boost] [uuid] Interface
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-23 19:09:38
AMDG
Scott McMurray wrote:
>> As for efficiency I expect this variant to be at least as efficient (if not
>> better) because uuid::nil() is likely to have and to return the same
>> initialized-once instance
>>
>>
>
> I'd be very suspicious of that claim. The cache miss for going to get
> that instance could well be worse.
>
msvc 9.0 compiles
boost::array<char, 16> data;
for(boost::array<char, 16>::iterator i = data.begin(), end =
data.end(); i != data.end(); ++i) {
*i = '\0';
}
into
xor eax,eax
mov dword ptr [esp],eax
mov dword ptr [esp+4],eax
mov dword ptr [esp+8],eax
mov dword ptr [esp+0Ch],eax
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk