]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/StupidAllocator: use btree_map<> instead of map<>
authorSage Weil <sage@redhat.com>
Wed, 13 Jan 2016 21:51:23 +0000 (16:51 -0500)
committerSage Weil <sage@redhat.com>
Wed, 20 Jan 2016 15:48:48 +0000 (10:48 -0500)
commit432fa9ddf4240919c29da7e81574da716bea6bfc
treeeb2db6c478e7c1fcce6edd234239fc5d62c6d0d8
parentd06d645f4324785c56d1af354f1ffe6e9167d6bd
os/bluestore/StupidAllocator: use btree_map<> instead of map<>

btree_map uses about half the memory.  According to the cpp-btree docs they
are also faster than STL maps... especially when they get big.

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