rocksdb/utilities
Manuel Ung e63350e726 Use more efficient hash map for deadlock detection
Summary:
Currently, deadlock cycles are held in std::unordered_map. The problem with it is that it allocates/deallocates memory on every insertion/deletion. This limits throughput since we're doing this expensive operation while holding a global mutex. Fix this by using a vector which caches memory instead.

Running the deadlock stress test, this change increased throughput from 39k txns/s -> 49k txns/s. The effect is more noticeable in MyRocks.
Closes https://github.com/facebook/rocksdb/pull/1545

Differential Revision: D4205662

Pulled By: lth

fbshipit-source-id: ff990e4
2016-11-19 11:39:15 -08:00
..
2016-11-16 17:24:15 -08:00
2016-09-27 20:39:15 -07:00
2016-04-22 16:49:12 -07:00
2016-11-17 12:24:12 -08:00
2016-09-27 18:20:57 -07:00
2016-08-03 10:41:27 -07:00
2016-08-03 10:41:27 -07:00
2015-12-10 21:32:45 -05:00
2015-12-23 22:38:12 -08:00