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

Issue 539473002: Reuse HttpClient in the built-in resource loader. (Closed)

Created:
6 years, 3 months ago by Anders Johnsen
Modified:
6 years, 3 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Reuse HttpClient in the built-in resource loader. BUG= Committed: https://code.google.com/p/dart/source/detail?r=39848

Patch Set 1 #

Patch Set 2 : Fix merge copy. #

Patch Set 3 : Fix merge copy. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -34 lines) Patch
M runtime/bin/builtin.dart View 2 3 chunks +30 lines, -34 lines 4 comments Download

Messages

Total messages: 5 (1 generated)
Anders Johnsen
My dart2js benchmark goes from ~520ms to ~470ms.
6 years, 3 months ago (2014-09-03 12:08:59 UTC) #2
Ivan Posva
LGTMwC -Ivan https://codereview.chromium.org/539473002/diff/40001/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://codereview.chromium.org/539473002/diff/40001/runtime/bin/builtin.dart#newcode217 runtime/bin/builtin.dart:217: // Only create a ByteBuilder if multiple ...
6 years, 3 months ago (2014-09-03 15:37:38 UTC) #3
Anders Johnsen
Committed patchset #3 (id:40001) manually as 39848 (presubmit successful).
6 years, 3 months ago (2014-09-04 06:53:48 UTC) #4
Anders Johnsen
6 years, 3 months ago (2014-09-04 08:26:29 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/539473002/diff/40001/runtime/bin/builtin.dart
File runtime/bin/builtin.dart (right):

https://codereview.chromium.org/539473002/diff/40001/runtime/bin/builtin.dart...
runtime/bin/builtin.dart:217: // Only create a ByteBuilder if multiple chunks
are received.
On 2014/09/03 15:37:38, Ivan Posva wrote:
> I am reading this comment as a TODO, correct?

Removing, the bytebuffer does this for us.

https://codereview.chromium.org/539473002/diff/40001/runtime/bin/builtin.dart...
runtime/bin/builtin.dart:259: if (_httpClient != null) {
On 2014/09/03 15:37:38, Ivan Posva wrote:
> Can you move this code in a helper function which closes the client and
signals
> the VM? Because otherwise we forget to call it in other places where we are
> "done loading". Like below in the error case.

Good catch.

Powered by Google App Engine
This is Rietveld 408576698