Boost C++ Libraries: Ticket #6829: [smart_ptr] make_shared is slower than shared_ptr(new) in MSVC https://svn.boost.org/trac10/ticket/6829 <p> boost::make_shared() works much slower than it supposed to in MSVC It uses RTTI to get its custom deleter, and RTTI is painfully slow in MSVC. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6829 Trac 1.4.3 mt.wizard@… Wed, 25 Apr 2012 22:22:32 GMT attachment set https://svn.boost.org/trac10/ticket/6829 https://svn.boost.org/trac10/ticket/6829 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">make_shared_perf.patch</span> </li> </ul> <p> More optimal implementation of make_shared: don't use RTTI and don't store exptra pointer to allocated object as its position is know without it </p> Ticket mt.wizard@… Wed, 25 Apr 2012 23:55:35 GMT component, severity changed; owner set https://svn.boost.org/trac10/ticket/6829#comment:1 https://svn.boost.org/trac10/ticket/6829#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Peter Dimov</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">smart_ptr</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Optimization</span> </li> </ul> Ticket ierceg@… Thu, 26 Apr 2012 19:13:47 GMT attachment set https://svn.boost.org/trac10/ticket/6829 https://svn.boost.org/trac10/ticket/6829 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">make_shared.hpp</span> </li> </ul> <p> Updated smart_ptr\make_shared.hpp file to look more like the original implementation and with sp_enable_shared_from_this calls that were missing in the patch. </p> Ticket anonymous Sat, 28 Apr 2012 03:39:27 GMT <link>https://svn.boost.org/trac10/ticket/6829#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6829#comment:2</guid> <description> <p> Is there any way to remove attached file here? Please don't use the make_shared.hpp from attachment. </p> </description> <category>Ticket</category> </item> </channel> </rss>