
On 25 May 2011 16:23, Phil Bouchard <philippe@fornux.com> wrote:
$ bin/benchmark.test/gcc-4.1.2/release/benchmark make: auto_ptr: 10980716 ns shared_ptr: 15384949 ns block_ptr: 118651908 ns
new: auto_ptr: 4608425 ns shared_ptr: 10733654 ns block_ptr: 69710242 ns
You have yet to explain why your make_auto is so much slower than new directly. It just isn't that expensive to copy one pointer and zero out another. I can't imagine what else your code can possibly be doing. I can't imagine how that can be more, let alone significantly more expensive than a heap allocation. Enlighten me. -- Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> (847) 691-1404