
16 Jun
2011
16 Jun
'11
10:11 a.m.
Stephan T. Lavavej wrote:
I don't look at Boost's implementation, but this makes me curious as to whether you implement the "we know where you live" optimization. On x86, for a 4-byte Foobar, how big is your reference count control block for make_shared<Foobar>()? Mine is 16 bytes.
Yes, you're right, I'm not eliminating the pointer at the moment. (I wasn't sure to which optimization you refer.)