[RocksDB] [Performance Branch] Revert previous patch.

Summary: The previous patch is wrong. rep_.resize(kHeader) just resets the header portion to zero, and should not cause a re-allocation if g++ does it right. I will go ahead and revert it.

Test Plan: make check

Reviewers: dhruba, sdong

CC: leveldb

Differential Revision: https://reviews.facebook.net/D14793
This commit is contained in:
Haobo Xu 2013-12-20 18:14:17 -08:00
parent e94eea4527
commit bf4a48ccb3

View File

@ -58,6 +58,7 @@ bool WriteBatch::Handler::Continue() {
void WriteBatch::Clear() {
rep_.clear();
rep_.resize(kHeader);
}
int WriteBatch::Count() const {