sdong
b405cb886b
PlainTableIterator not to store copied key in std::string
...
Summary:
Move PlainTableIterator's copied key from std::string local buffer to avoid paying the extra costs in std::string related to sharing. Reuse the same buffer class in DbIter. Move the class to dbformat.h.
This patch improves iterator performance significantly. Running this benchmark:
./table_reader_bench --num_keys2=17 --iterator --plain_table --time_unit=nanosecond
The average latency is improved to about 750 nanoseconds from 1100 nanoseconds.
Test Plan:
Add a unit test.
make all check
Reviewers: haobo, ljin
Reviewed By: haobo
CC: igor, yhchiang, dhruba, leveldb
Differential Revision: https://reviews.facebook.net/D17547
2014-04-07 22:18:09 -07:00
..
2014-03-24 17:57:13 -07:00
2014-02-03 12:19:30 -08:00
2014-04-03 10:47:37 +02:00
2014-04-03 10:47:37 +02:00
2014-04-03 11:45:44 -07:00
2014-03-05 15:36:32 -08:00
2014-03-19 16:01:25 -07:00
2014-02-12 12:24:18 -08:00
2014-03-26 18:11:41 -07:00
2014-04-04 15:37:28 -07:00
2014-04-03 16:04:34 -07:00
2014-03-20 14:18:29 -07:00
2014-01-23 16:41:46 -08:00
2014-04-04 15:46:28 -07:00
2014-04-04 15:46:28 -07:00
2014-04-07 22:18:09 -07:00
2013-10-16 17:48:41 -07:00
2014-01-15 16:18:04 -08:00
2014-04-02 22:12:29 -07:00
2013-10-16 17:48:41 -07:00
2014-04-01 16:43:11 -07:00
2014-04-07 22:18:09 -07:00
2013-11-15 16:30:23 -08:00
2013-10-16 17:48:41 -07:00
2013-10-25 08:32:14 -07:00
2013-10-25 08:32:14 -07:00
2014-03-27 15:14:04 -07:00
2014-03-27 15:14:04 -07:00
2014-01-02 16:32:31 -08:00
2014-02-28 13:19:47 -08:00
2014-01-27 14:49:10 -08:00
2014-03-14 22:44:35 +00:00
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2014-04-03 10:47:18 -07:00
2014-04-03 10:47:18 -07:00
2014-04-04 15:37:28 -07:00
2014-03-12 16:40:14 -07:00
2014-03-24 17:57:13 -07:00
2014-03-27 16:15:25 -07:00
2014-03-24 20:47:53 -07:00
2014-03-26 18:11:41 -07:00
2014-03-24 17:57:13 -07:00
2014-03-14 13:02:20 -07:00
2014-04-07 22:18:09 -07:00
2014-01-24 17:16:22 -08:00
2014-03-14 10:02:04 -07:00
2014-03-17 21:52:14 -07:00
2014-02-07 19:26:49 -08:00
2014-01-30 22:10:10 -08:00
2014-03-10 12:56:46 -07:00
2013-10-16 17:48:41 -07:00
2014-03-25 18:40:52 -07:00
2014-04-02 14:38:28 -07:00
2014-02-11 17:52:18 -08:00
2013-12-05 16:34:16 -08:00
2013-12-05 16:34:16 -08:00
2014-03-10 12:56:46 -07:00
2014-01-23 16:26:08 -08:00
2014-03-12 09:37:43 -07:00
2014-03-12 09:37:43 -07:00
2014-01-16 14:06:53 -08:00
2014-03-31 11:33:09 -07:00
2014-03-31 11:33:09 -07:00
2013-10-16 17:48:41 -07:00
2014-04-02 14:38:28 -07:00
2014-03-19 16:52:26 -07:00
2013-10-31 11:27:12 -07:00
2014-02-03 12:19:30 -08:00
2014-01-23 16:32:49 -08:00