Improve performance of CheckValidity.
This patch improves performance of CheckValidity() by removing calls to leveldb::DB::Get() from loops. As a result the performance improved by 1.92x on Yoshi, for a testing account with a lot of files. Note, that base::hash_map is used, as its much faster in this case. Using std::map gave only 1.39x performance gain over the former solution. TEST=unit_tests: *ResourceMetadataStorageTest*, also tested manually. BUG=418873 Review URL: https://codereview.chromium.org/638543002 Cr-Commit-Position: refs/heads/master@{#302073}
Showing
Please register or sign in to comment