Abhishek Kona 009034cf12 Performant util/histogram.
Summary:
Earlier way to record in histogram=>
Linear search BucketLimit array to find the bucket and increment the
counter
Current way to record in histogram=>
Store a HistMap statically which points the buckets of each value in the
range [kFirstValue, kLastValue);

In the proccess use vectors instead of array's and refactor some code to
HistogramHelper class.

Test Plan:
run db_bench with histogram=1 and see a histogram being
printed.

Reviewers: dhruba, chip, heyongqiang

Reviewed By: chip

CC: leveldb

Differential Revision: https://reviews.facebook.net/D8265
2013-01-31 16:10:34 -08:00
..
2011-10-31 17:22:06 +00:00
2011-10-31 17:22:06 +00:00
2012-11-28 17:18:41 -08:00
2012-12-07 10:48:46 -08:00
2013-01-31 15:20:24 -08:00
2012-08-28 11:43:33 -07:00
2011-10-31 17:22:06 +00:00
2013-01-31 15:20:24 -08:00
2013-01-31 15:20:24 -08:00
2012-04-17 08:36:46 -07:00
2011-10-31 17:22:06 +00:00
2013-01-31 16:10:34 -08:00
2013-01-31 16:10:34 -08:00
2013-01-31 16:10:34 -08:00
2011-10-31 17:22:06 +00:00
2011-10-31 17:22:06 +00:00
2011-10-31 17:22:06 +00:00
2011-10-31 17:22:06 +00:00