Opened 14 years ago

Closed 14 years ago

#2662 closed Patches (fixed)

make_shared performance optimization

Reported by: Frank Mori Hess Owned by: Peter Dimov
Milestone: Boost 1.39.0 Component: smart_ptr
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

Attaching a small patch which adds a copy constructor to detail::sp_ms_deleter. This patch greatly improves the performance of make_shared<T> when T is a large type by avoiding unnecessary copying of the storage area in the deleter.

Attachments (1)

make_shared_optimization.patch​ (511 bytes ) - added by Frank Mori Hess 14 years ago.

Download all attachments as: .zip

Change History (5)

by Frank Mori Hess, 14 years ago

comment:1 by Peter Dimov, 14 years ago

Milestone: Boost 1.38.0 → Boost 1.39.0
Status: new → assigned

comment:2 by Peter Dimov, 14 years ago

Severity: Optimization → Problem

comment:3 by Peter Dimov, 14 years ago

(In [51516]) Refs #2662 (applied to trunk.)

comment:4 by Peter Dimov, 14 years ago

Resolution: → fixed
Status: assigned → closed

(In [51537]) Merge [51516] to release. Closes #2662.

Note: See TracTickets for help on using tickets.