Revision e63350e726d62144037d889c348cf007deda7a80 authored by Manuel Ung on 19 November 2016, 19:34:26 UTC, committed by Facebook Github Bot on 19 November 2016, 19:39:15 UTC
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
1 parent a13bde3
.clang-format
# Complete list of style options can be found at:
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
---
BasedOnStyle: Google
...
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...