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

Issue 2939073002: Don't realize existing parts of an extended memory-mapped file. (Closed)

Created:
3 years, 6 months ago by bcwhite
Modified:
3 years, 6 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't realize existing parts of an extended memory-mapped file. Realizing the entire file when extending a file is expensive and unnecessary if we assume that the existing file is not sparse. Just realize the extension. This is important for persistent metrics which creates a "spare" file for use by the next run of the browser. To realize it again would negate most of the benefit of creating it in the first place. BUG=717331 Review-Url: https://codereview.chromium.org/2939073002 Cr-Commit-Position: refs/heads/master@{#479718} Committed: https://chromium.googlesource.com/chromium/src/+/f838936df9cdc2d95d64fb7cbae76a6ecd927cdd

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -15 lines) Patch
M base/files/memory_mapped_file.cc View 1 chunk +1 line, -0 lines 0 comments Download
M base/files/memory_mapped_file_posix.cc View 3 chunks +15 lines, -15 lines 2 comments Download

Messages

Total messages: 15 (9 generated)
bcwhite
3 years, 6 months ago (2017-06-15 15:13:30 UTC) #4
Mark Mentovai
Might we pick up an old sparse file that’s sparse because we crashed or failed ...
3 years, 6 months ago (2017-06-15 15:31:24 UTC) #5
bcwhite
> Might we pick up an old sparse file that’s sparse because we crashed or ...
3 years, 6 months ago (2017-06-15 15:38:19 UTC) #6
Mark Mentovai
Thanks. LGTM in that case.
3 years, 6 months ago (2017-06-15 15:40:49 UTC) #7
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/2939073002/1
3 years, 6 months ago (2017-06-15 15:46:25 UTC) #12
commit-bot: I haz the power
3 years, 6 months ago (2017-06-15 15:51:50 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/f838936df9cdc2d95d64fb7cbae7...

Powered by Google App Engine
This is Rietveld 408576698