Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Issue 2500473002: [base::FilePath] Optimize FilePath::ReferencesParent (Closed)

Created:
4 years, 1 month ago by jkarlin
Modified:
4 years, 1 month ago
Reviewers:
danakj
CC:
chromium-reviews, gavinp
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[base::FilePath] Optimize FilePath::ReferencesParent ReferencesParent is expensive but in the majority of cases can early return if no '..' is present in the string, significantly reducing the average cost. When loading 1,000 tiny images (35 bytes each), the SimpleCache worker threads spend 10.7% of their time in ReferencesParent according to linux perf (during File::Initialize). After this change, they spend .4% of their time in ReferencesParent. BUG=664174 Committed: https://crrev.com/f95b1d92dfe18b6350cdc0f23e34ddabb07d041d Cr-Commit-Position: refs/heads/master@{#431632}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M base/files/file_path.cc View 1 chunk +6 lines, -0 lines 3 comments Download

Depends on Patchset:

Messages

Total messages: 17 (9 generated)
jkarlin
danakj@ PTAL, thanks! gavinp@ FYI for SimpleCache optimization
4 years, 1 month ago (2016-11-11 13:47:20 UTC) #5
danakj
https://codereview.chromium.org/2500473002/diff/1/base/files/file_path.cc File base/files/file_path.cc (right): https://codereview.chromium.org/2500473002/diff/1/base/files/file_path.cc#newcode569 base/files/file_path.cc:569: std::vector<StringType> components; This is great! Question tho: We should ...
4 years, 1 month ago (2016-11-11 19:17:40 UTC) #8
jkarlin
https://codereview.chromium.org/2500473002/diff/1/base/files/file_path.cc File base/files/file_path.cc (right): https://codereview.chromium.org/2500473002/diff/1/base/files/file_path.cc#newcode569 base/files/file_path.cc:569: std::vector<StringType> components; On 2016/11/11 19:17:40, danakj wrote: > This ...
4 years, 1 month ago (2016-11-11 19:38:24 UTC) #9
danakj
https://codereview.chromium.org/2500473002/diff/1/base/files/file_path.cc File base/files/file_path.cc (right): https://codereview.chromium.org/2500473002/diff/1/base/files/file_path.cc#newcode569 base/files/file_path.cc:569: std::vector<StringType> components; On 2016/11/11 19:38:24, jkarlin wrote: > On ...
4 years, 1 month ago (2016-11-11 19:57:27 UTC) #10
jkarlin
Thanks!
4 years, 1 month ago (2016-11-11 20:02:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2500473002/1
4 years, 1 month ago (2016-11-11 20:02:38 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-11 20:45:01 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 21:00:34 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f95b1d92dfe18b6350cdc0f23e34ddabb07d041d
Cr-Commit-Position: refs/heads/master@{#431632}

Powered by Google App Engine
This is Rietveld 408576698