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

Issue 2988613002: Compute the script Uri lazily (Closed)

Created:
3 years, 5 months ago by zra
Modified:
3 years, 4 months ago
Reviewers:
rmacnak, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Compute the script Uri lazily Previously, the string set up by the embedder was eagerly passed to Uri.parse during Isolate startup. This is expensive both in time and memory footprint. This CL causes Uri.parse() to be called only when needed. This change will allow reducing the memory footprint of Fuchsia's Dart content handler on hello world by ~1MB. fixes #25603 R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/9e7e66602f033c5163c8bfd27471c48d9e93945b

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -13 lines) Patch
M pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/bin/platform_patch.dart View 1 chunk +15 lines, -11 lines 1 comment Download
M runtime/lib/internal_patch.dart View 1 chunk +13 lines, -1 line 0 comments Download
M sdk/lib/_internal/js_runtime/lib/io_patch.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M sdk/lib/io/platform_impl.dart View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
zra
3 years, 4 months ago (2017-07-24 14:44:02 UTC) #3
siva
Is this CL the first part of another change? I am not able to figure ...
3 years, 4 months ago (2017-07-24 15:10:07 UTC) #4
zra
https://codereview.chromium.org/2988613002/diff/1/runtime/bin/platform_patch.dart File runtime/bin/platform_patch.dart (right): https://codereview.chromium.org/2988613002/diff/1/runtime/bin/platform_patch.dart#newcode39 runtime/bin/platform_patch.dart:39: static void set _nativeScript(String path) { In the standalone ...
3 years, 4 months ago (2017-07-24 15:32:48 UTC) #5
siva
lgtm
3 years, 4 months ago (2017-07-24 16:44:58 UTC) #6
zra
3 years, 4 months ago (2017-07-24 19:56:28 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
9e7e66602f033c5163c8bfd27471c48d9e93945b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698