]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Use make_shared while creating shared_ptr 7769/head
authorSomnath Roy <somnath.roy@sandisk.com>
Mon, 1 Feb 2016 19:35:26 +0000 (14:35 -0500)
committerSomnath Roy <somnath.roy@sandisk.com>
Thu, 18 Feb 2016 01:16:39 +0000 (20:16 -0500)
commit331e90f450265891c68790bec2f82d39e0d096af
tree6a89f87a2e6303bf41efd41427404756ba4133ae
parent196d324b097d3499010c00352a91ff898a7a0ade
Use make_shared while creating shared_ptr

make_shared() will get rid of one extra 'new' call during shared_ptr
creation.It is also 20-30% faster than creating shared_ptr directly
by 'new' call.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
18 files changed:
src/include/encoding.h
src/kv/KeyValueDB.h
src/kv/KineticStore.h
src/kv/LevelDBStore.h
src/kv/RocksDBStore.cc
src/kv/RocksDBStore.h
src/os/ObjectStore.cc
src/os/ObjectStore.h
src/os/filestore/CollectionIndex.h
src/os/filestore/DBObjectMap.cc
src/os/filestore/DBObjectMap.h
src/os/filestore/LFNIndex.cc
src/osd/OSD.cc
src/osd/OSDMap.h
src/osd/PG.cc
src/osd/ReplicatedBackend.cc
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h