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

Issue 2690263004: Add option to GRIT to provide a resource ordering input file. (Closed)

Created:
3 years, 10 months ago by Alexei Svitkine (slow)
Modified:
3 years, 10 months ago
Reviewers:
Nico
CC:
chromium-reviews, asvitkine+watch_chromium.org, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add option to GRIT to provide a resource ordering input file. This allows optimizing Chrome's start up sequence such that the resources that are loading during startup appear in order in the resource .pak files and thus incur less page faults to load from disk and a faster start up time and less memory used (due to less pages resident in RAM). This change adds the necessary infrastructure to support this, but does not yet enable it for any platform. That will be done in a separate change later. BUG=692670 Review-Url: https://codereview.chromium.org/2690263004 Cr-Commit-Position: refs/heads/master@{#451464} Committed: https://chromium.googlesource.com/chromium/src/+/9a84244d0aabd3d3ee775adf82dc9acb2fefac31

Patch Set 1 : With Mac resource ordering file. #

Patch Set 2 : Removed Mac resource ordering file. #

Total comments: 6

Patch Set 3 : Address comments. #

Total comments: 6

Patch Set 4 : Address comments. #

Patch Set 5 : Reverse dict using 1-liner-ish. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -5 lines) Patch
M tools/grit/grit/format/rc_header.py View 1 2 3 4 4 chunks +36 lines, -3 lines 0 comments Download
M tools/grit/grit/format/rc_header_unittest.py View 3 chunks +56 lines, -0 lines 0 comments Download
M tools/grit/grit/grd_reader.py View 4 chunks +7 lines, -1 line 0 comments Download
M tools/grit/grit/tool/build.py View 1 2 3 5 chunks +16 lines, -1 line 0 comments Download
M tools/grit/grit_rule.gni View 1 2 chunks +11 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 51 (30 generated)
Alexei Svitkine (slow)
3 years, 10 months ago (2017-02-16 16:04:32 UTC) #18
Nico
Looks generally fine. I idly wonder if we should call this "order_file" instead of "predetermined_ids", ...
3 years, 10 months ago (2017-02-17 21:44:08 UTC) #19
Alexei Svitkine (slow)
https://codereview.chromium.org/2690263004/diff/100001/tools/grit/grit/format/rc_header.py File tools/grit/grit/format/rc_header.py (right): https://codereview.chromium.org/2690263004/diff/100001/tools/grit/grit/format/rc_header.py#newcode80 tools/grit/grit/format/rc_header.py:80: _predetermined_tids = {} On 2017/02/17 21:44:08, Nico wrote: > ...
3 years, 10 months ago (2017-02-17 22:07:51 UTC) #20
Nico
lgtm https://codereview.chromium.org/2690263004/diff/120001/tools/grit/grit/format/rc_header.py File tools/grit/grit/format/rc_header.py (right): https://codereview.chromium.org/2690263004/diff/120001/tools/grit/grit/format/rc_header.py#newcode130 tools/grit/grit/format/rc_header.py:130: predetermined_ids[id] = tid I think predetermined_ids = dict(predetermined_tids) ...
3 years, 10 months ago (2017-02-17 22:15:42 UTC) #21
Alexei Svitkine (slow)
https://codereview.chromium.org/2690263004/diff/120001/tools/grit/grit/format/rc_header.py File tools/grit/grit/format/rc_header.py (right): https://codereview.chromium.org/2690263004/diff/120001/tools/grit/grit/format/rc_header.py#newcode130 tools/grit/grit/format/rc_header.py:130: predetermined_ids[id] = tid On 2017/02/17 22:15:42, Nico wrote: > ...
3 years, 10 months ago (2017-02-17 22:39:25 UTC) #22
Nico
https://codereview.chromium.org/2690263004/diff/120001/tools/grit/grit/format/rc_header.py File tools/grit/grit/format/rc_header.py (right): https://codereview.chromium.org/2690263004/diff/120001/tools/grit/grit/format/rc_header.py#newcode130 tools/grit/grit/format/rc_header.py:130: predetermined_ids[id] = tid On 2017/02/17 22:39:25, Alexei Svitkine (slow) ...
3 years, 10 months ago (2017-02-17 22:40:22 UTC) #25
Nico
forgot a comma: predetermined_ids = {value: key for key, value in predetermined_tis}
3 years, 10 months ago (2017-02-17 22:40:38 UTC) #26
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/2690263004/140001
3 years, 10 months ago (2017-02-17 22:41:40 UTC) #27
Nico
but that pending 2 line reduction! :-P On Fri, Feb 17, 2017 at 5:41 PM, ...
3 years, 10 months ago (2017-02-17 22:42:54 UTC) #28
Alexei Svitkine (slow)
Sure, that works. Done. Needed to wrap because you gotta do .iteritems() and so its ...
3 years, 10 months ago (2017-02-17 22:45:46 UTC) #30
Nico
Is that .iteritems really needed? Huh. On Fri, Feb 17, 2017 at 5:45 PM, Alexei ...
3 years, 10 months ago (2017-02-17 22:46:16 UTC) #33
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/2690263004/160001
3 years, 10 months ago (2017-02-17 22:47:20 UTC) #34
Alexei Svitkine (slow)
Without it: ValueError: too many values to unpack On Fri, Feb 17, 2017 at 5:46 ...
3 years, 10 months ago (2017-02-17 22:47:27 UTC) #35
Nico
Ah. From a few seconds in the repl, I guess it's >>> {a[k]:k for k ...
3 years, 10 months ago (2017-02-17 22:52:25 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
3 years, 10 months ago (2017-02-18 00:49:52 UTC) #38
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/2690263004/160001
3 years, 10 months ago (2017-02-18 01:26:29 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-18 03:28:28 UTC) #42
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/2690263004/160001
3 years, 10 months ago (2017-02-18 13:11:15 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/367887)
3 years, 10 months ago (2017-02-18 14:28:13 UTC) #46
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/2690263004/160001
3 years, 10 months ago (2017-02-18 15:27:19 UTC) #48
commit-bot: I haz the power
3 years, 10 months ago (2017-02-18 16:03:07 UTC) #51
Message was sent while issue was closed.
Committed patchset #5 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/9a84244d0aabd3d3ee775adf82dc...

Powered by Google App Engine
This is Rietveld 408576698