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

Issue 2805064: Changing the pre-reading of chrome.dll to read it as an image section instead... (Closed)

Created:
10 years, 5 months ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
slightlyoff, stoyan
CC:
chromium-reviews
Visibility:
Public.

Description

Changing the pre-reading of chrome.dll to read it as an image section instead. XP ignores pages read as data while mapping image sections. This shows a reasonable improvement in cold startup performance on XP. This change only comes into effect for headless mode which enables us to try out the effect on the perf bots and for chrome frame processes. Code mostly written by Amit. Added a chrome frame perf tests which measures LoadLibrary in cold mode with pre-reading. Bug=45510 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51594

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -47 lines) Patch
M base/file_util.h View 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M base/file_util_win.cc View 2 3 4 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/app/client_util.cc View 1 2 3 4 5 2 chunks +23 lines, -40 lines 0 comments Download
M chrome_frame/test/perf/chrome_frame_perftest.cc View 2 3 4 5 6 7 3 chunks +45 lines, -7 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ananta
10 years, 5 months ago (2010-07-01 23:17:37 UTC) #1
slightlyoff
Nit in tests. LGTM. http://codereview.chromium.org/2805064/diff/10001/11004 File chrome_frame/test/perf/chrome_frame_perftest.cc (right): http://codereview.chromium.org/2805064/diff/10001/11004#newcode955 chrome_frame/test/perf/chrome_frame_perftest.cc:955: FilePath binaries_to_evict[] = {chrome_exe_, chrome_dll_}; ...
10 years, 5 months ago (2010-07-02 20:56:14 UTC) #2
stoyan
ok
10 years, 5 months ago (2010-07-02 23:30:00 UTC) #3
ananta
http://codereview.chromium.org/2805064/diff/10001/11004 File chrome_frame/test/perf/chrome_frame_perftest.cc (right): http://codereview.chromium.org/2805064/diff/10001/11004#newcode955 chrome_frame/test/perf/chrome_frame_perftest.cc:955: FilePath binaries_to_evict[] = {chrome_exe_, chrome_dll_}; On 2010/07/02 20:56:15, slightlyoff ...
10 years, 5 months ago (2010-07-03 15:51:01 UTC) #4
joshia
On Sat, Jul 3, 2010 at 8:51 AM, <ananta@chromium.org> wrote: > > http://codereview.chromium.org/2805064/diff/10001/11004 > File ...
10 years, 5 months ago (2010-07-03 15:58:02 UTC) #5
slightlyoff
10 years, 5 months ago (2010-07-03 19:10:40 UTC) #6
On Sat, Jul 3, 2010 at 8:57 AM, Amit Joshi <joshia@google.com> wrote:
>
>
> On Sat, Jul 3, 2010 at 8:51 AM, <ananta@chromium.org> wrote:
>>
>> http://codereview.chromium.org/2805064/diff/10001/11004
>> File chrome_frame/test/perf/chrome_frame_perftest.cc (right):
>>
>> http://codereview.chromium.org/2805064/diff/10001/11004#newcode955
>> chrome_frame/test/perf/chrome_frame_perftest.cc:955: FilePath
>> binaries_to_evict[] = {chrome_exe_, chrome_dll_};
>> On 2010/07/02 20:56:15, slightlyoff wrote:
>>>
>>> this should probably evict more of the DLLs, see line 939 above for
>>
>> the fuller
>>>
>>> list.
>>
>> chrome.dll's loadlibrary call for now has the maximum overhead. We can
>> update this list with other dlls when we need them.
>
> I think Alex meant to evict the other DLLs that will get loaded with
> LoadLibrary of chrome.dll in order to get consistent results. Will the
> codecs, rlz etc get loaded with LoadLibrary or they are delay loaded?

There's no delay loading for renderers. Yes, they're just
LoadLibrary'd in, but their DllMains (etc.) will be called.

Powered by Google App Engine
This is Rietveld 408576698