]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: switch spanning_blob_map to std::map 11336/head
authorSage Weil <sage@redhat.com>
Wed, 5 Oct 2016 16:17:07 +0000 (12:17 -0400)
committerSage Weil <sage@redhat.com>
Wed, 5 Oct 2016 16:17:07 +0000 (12:17 -0400)
commit63d5b68da1757b2604ef136f75c7c56ecd9723d9
tree093f3a386a5413c34c7ad5a360629ca08f28fa5a
parent086cebc9a3e0937ec2935aa9783877c3262b1c68
os/bluestore: switch spanning_blob_map to std::map

The intrusive map overhead on Blob is expensive when a tiny fraction of
Blobs actually end up in the spanning_blob_map.  Let's pay the extra
allocation overhead (for the map node holding the BlobRef) for those rare
cases.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h