Subject: Re: [boost] [Smart Ptr] make_shared slower than shared_ptr(new) on VC++9 (and 10) with fix
From: Yuriy Zubritsky (mt.wizard_at_[hidden])
Date: 2012-04-26 13:36:58
>> and added #defines leaving non-MSVC part intact
This isn't needed. I wrote it to be cross-platform, and it also implements
optimization Stephen wrote about ("we know where you live").
I tested my code on msvc 9 - 11, gcc 4.6, 4.7 and clang.
26 Ë×¦ÔÎÑ 2012 Ò. 06:17 Ivan Erceg <ierceg_at_[hidden]> ÎÁÐÉÓÁ×:
> Yuriy Zubritsky <mt.wizard <at> gmail.com> writes:
> > Sure, I've attached it to ticked # 6829 I created :)
> > Sorry, I had no time to tell about it till now
> :) Thanks. I have adapted your code to be more in SmartPtr style and added
> #defines leaving non-MSVC part intact. It certainly works much faster
> std::make_shared on VC10 is still a bit faster on my box (less than
> 5% though).
> Once I test my changes and make sure I got all the repetitive code right
> attach it to your ticket.
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk