Lei Jin 4824014e3b speed up db_bench filluniquerandom mode
Summary:
filluniquerandom is painfully slow due to the naive bitmap check to find
out if a key has been seen before. Majority of time is spent on searching
the last few keys. Split a giant BitSet to smaller ones so that we can
quickly check if a BitSet is full and thus can skip quickly.

It used to take over one hour to filluniquerandom for 100M keys, now it
takes about 10 mins.

Test Plan:
unit test
also verified correctness in db_bench and make sure all keys are
generated

Reviewers: igor, haobo, yhchiang

Reviewed By: igor

CC: leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D17607
2014-04-09 11:25:21 -07:00
..
2014-01-30 22:10:10 -08:00
2014-01-06 11:11:19 -08:00
2014-01-02 16:43:35 -08:00
2014-02-12 11:42:54 -08:00
2013-10-23 14:38:52 -07:00
2013-11-16 11:21:34 +00:00
2014-04-04 14:03:19 -07:00
2014-03-03 21:11:49 -08:00
2014-01-17 12:46:06 -08:00
2014-01-17 12:46:06 -08:00
2014-03-21 15:32:48 -07:00
2014-04-07 16:33:03 -07:00
2014-04-08 10:58:07 -07:00
2014-04-08 10:58:07 -07:00
2014-02-12 11:42:54 -08:00
2013-12-03 12:42:15 -08:00
2014-01-17 12:46:06 -08:00