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

Issue 1432973004: Transform ImagePreReader into PreReadFile (v2). (Closed)

Created:
5 years, 1 month ago by fdoray
Modified:
5 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Transform ImagePreReader into PreReadFile (v2). We can reduce startup time by pre-reading different non-PE files (e.g. ChromeDWriteFontCache, GPU cache, resources). This CL transforms ImagePreReader into PreReadFile, which can pre-read any file type on Vista+. On XP, PreReadFile can only pre-read PE files. A similar patch was already submitted (https://codereview.chromium.org/1412673006/). It was reverted because of an XP-only perf regression (crbug.com/551488). This new version loads files in memory using ::LoadLibraryExW instead of base::MemoryMappedFile on XP. This was the existing behavior of ImagePreReader, so it should no longer cause a perf regression. Unfortunately, it means that on XP, only PE files can be pre-read. BUG=547794 Committed: https://crrev.com/ab55daf96d88dc362951dcdead6617ab0379b569 Cr-Commit-Position: refs/heads/master@{#358917}

Patch Set 1 : Original CL #

Patch Set 2 : Initial implementation, with grt comments addressed. #

Total comments: 1

Patch Set 3 : grt comment #3 size_t -> uint32_t #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -504 lines) Patch
M chrome/BUILD.gn View 2 chunks +4 lines, -4 lines 0 comments Download
A chrome/app/file_pre_reader_win.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/app/file_pre_reader_win.cc View 1 2 1 chunk +104 lines, -0 lines 0 comments Download
D chrome/app/image_pre_reader_win.h View 1 chunk +0 lines, -73 lines 0 comments Download
D chrome/app/image_pre_reader_win.cc View 1 chunk +0 lines, -419 lines 0 comments Download
M chrome/app/main_dll_loader_win.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/chrome_exe.gypi View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
fdoray
grt@: Could you take another look? Here are my answers to your comments on the ...
5 years, 1 month ago (2015-11-10 20:25:52 UTC) #2
grt (UTC plus 2)
lgtm. good luck! https://codereview.chromium.org/1432973004/diff/20001/chrome/app/file_pre_reader_win.cc File chrome/app/file_pre_reader_win.cc (right): https://codereview.chromium.org/1432973004/diff/20001/chrome/app/file_pre_reader_win.cc#newcode23 chrome/app/file_pre_reader_win.cc:23: DCHECK_GT(length, static_cast<size_t>(0)); nit: size_t -> uint32_t
5 years, 1 month ago (2015-11-10 20:29:22 UTC) #3
jochen (gone - plz use gerrit)
lgtm
5 years, 1 month ago (2015-11-10 20:31:02 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432973004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432973004/40001
5 years, 1 month ago (2015-11-10 21:04:54 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-10 21:54:24 UTC) #8
commit-bot: I haz the power
5 years, 1 month ago (2015-11-10 21:55:05 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ab55daf96d88dc362951dcdead6617ab0379b569
Cr-Commit-Position: refs/heads/master@{#358917}

Powered by Google App Engine
This is Rietveld 408576698