Feng Zhu da9274574f Use IterKey instead of string in Block::Iter to reduce malloc
Summary:
  Modify a functioin TrimAppend in dbformat.h: IterKey. Write a test for it in dbformat_test
  Use IterKey in block::Iter to replace std::string to reduce malloc.

  Evaluate it using perf record.
  malloc: 4.26% -> 2.91%
  free: 3.61% -> 3.08%

Test Plan:
  make all check
  ./valgrind db_test dbformat_test

Reviewers: ljin, haobo, yhchiang, dhruba, igor, sdong

Reviewed By: sdong

Differential Revision: https://reviews.facebook.net/D20433
2014-07-23 12:31:11 -07:00
..
2014-05-15 14:09:03 -07:00
2014-05-15 14:09:03 -07:00
2014-06-19 01:37:21 -07:00
2014-05-15 14:09:03 -07:00
2014-05-07 17:48:31 -07:00
2014-05-01 14:09:32 -04:00
2014-04-09 21:17:14 -07:00
2014-07-21 10:31:33 -07:00
2014-07-21 10:31:33 -07:00
2014-07-21 10:31:33 -07:00
2014-02-03 00:30:43 -08:00
2014-07-18 00:08:38 -07:00
2014-06-20 10:23:02 +02:00
2014-07-18 00:08:38 -07:00