DescriptionTransform 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 #
Messages
Total messages: 9 (3 generated)
|