diff options
author | mtomasz <mtomasz@chromium.org> | 2014-10-30 05:51:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-30 12:51:17 +0000 |
commit | f2b6ebcac0682e53ea7a8c0942c8db60dc24a6c7 (patch) | |
tree | 20d05e02796dd3f510c44f2a767b5d6d1f9952b6 /AUTHORS | |
parent | 4b83c33732fb77da5d5100c339ad16325047ebed (diff) | |
download | chromium_src-f2b6ebcac0682e53ea7a8c0942c8db60dc24a6c7.zip chromium_src-f2b6ebcac0682e53ea7a8c0942c8db60dc24a6c7.tar.gz chromium_src-f2b6ebcac0682e53ea7a8c0942c8db60dc24a6c7.tar.bz2 |
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}
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions