Revision e9c31ab1592be6c53c6a1a86cdfefcc8cd0d6e7d authored by jsteemann on 21 February 2018, 01:34:44 UTC, committed by Facebook Github Bot on 21 February 2018, 01:44:44 UTC
Summary: In case it is found that a key is already marked as locked in a stripe's map of locked keys, it is not necessary to look it up again using `std::unordered_map<std::string, ...>::at(size_t)`. Instead, we can use the already found position using the iterator produced by the previous `find` operation. Reusing the iterator will avoid having to hash the key again and do additional "random" memory lookups in the map of keys (though the data will very likely sit available in caches here already due to the previous find operation) Closes https://github.com/facebook/rocksdb/pull/3505 Differential Revision: D7036446 Pulled By: sagar0 fbshipit-source-id: cced51547b2bd2d49394f6bc8c5896f09fa80f68
1 parent 1960e73
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...