
24 Dec
2008
24 Dec
'08
12:09 a.m.
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