]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test log performance with PreallocatedStreambuf
authorSage Weil <sage@newdream.net>
Sat, 24 Mar 2012 15:00:19 +0000 (08:00 -0700)
committerSage Weil <sage@newdream.net>
Tue, 27 Mar 2012 17:41:15 +0000 (10:41 -0700)
commit23f0af3c06a5544ac174037f25156fb83e4d8be2
treea5e33927f3e4a072fd6ef54111b35c11998b2106
parenta4509273ce7e9952cdf208e0d5340bbe4a91b9d8
test log performance with PreallocatedStreambuf

- faster than ostringstream in optimistic case
- same as ostreamstream + std::string assignment in worst case (use
  overflow string)

Signed-off-by: Sage Weil <sage@newdream.net>
src/Makefile.am
src/log/Entry.h
src/log/test.cc