]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
TransformRep - use array instead of unordered_map
authorIgor Canadi <icanadi@fb.com>
Wed, 6 Nov 2013 19:55:43 +0000 (11:55 -0800)
committerIgor Canadi <icanadi@fb.com>
Wed, 6 Nov 2013 19:55:43 +0000 (11:55 -0800)
commitbe96f2498ebde19abc91aa68c22dff5d6718819b
tree5e3320fdf3f968ff01e76081ea25c1b4172b627c
parentfe4a4494726f706bd531b4ed0e47c1be670bfbef
TransformRep - use array instead of unordered_map

Summary:
I'm sending this diff together with https://reviews.facebook.net/D13881 because it didn't allow me to send only the array one.

Here I also replaced unordered_map with just an array of shared_ptrs. This elminated all the locks.

I will run the new benchmark and post the results here.

Test Plan: db_test

Reviewers: dhruba, haobo

Reviewed By: haobo

CC: leveldb
Differential Revision: https://reviews.facebook.net/D13893
db/db_test.cc
db/prefix_test.cc
include/rocksdb/memtablerep.h
util/transformrepnolock.cc [new file with mode: 0644]