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

Issue 2864573002: dart2js allocation tweaks (Closed)

Created:
3 years, 7 months ago by sra1
Modified:
3 years, 7 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js allocation tweaks In compiling a large app: 50% reduction in number of strings allocated. 20% reduction in number of closures allocated. It is hard to tell if there is a performance improvement because it is in the noise. R=kmillikin@google.com, sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/dc8a4f21b8f32b4bfd73b51e86412b27a2c0f45d

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -17 lines) Patch
M pkg/compiler/lib/src/inferrer/type_system.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/io/location_provider.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/compiler/lib/src/io/source_map_builder.dart View 1 chunk +4 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/world.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/kernel/lib/ast.dart View 3 chunks +2 lines, -7 lines 3 comments Download

Messages

Total messages: 13 (6 generated)
sra1
3 years, 7 months ago (2017-05-05 01:20:32 UTC) #5
ahe
https://codereview.chromium.org/2864573002/diff/20001/pkg/kernel/lib/ast.dart File pkg/kernel/lib/ast.dart (right): https://codereview.chromium.org/2864573002/diff/20001/pkg/kernel/lib/ast.dart#newcode4374 pkg/kernel/lib/ast.dart:4374: RangeError.checkValueInInterval(line, 1, lineStarts.length, 'line'); Did you change the error ...
3 years, 7 months ago (2017-05-05 05:27:44 UTC) #6
sra1
https://codereview.chromium.org/2864573002/diff/20001/pkg/kernel/lib/ast.dart File pkg/kernel/lib/ast.dart (right): https://codereview.chromium.org/2864573002/diff/20001/pkg/kernel/lib/ast.dart#newcode4374 pkg/kernel/lib/ast.dart:4374: RangeError.checkValueInInterval(line, 1, lineStarts.length, 'line'); On 2017/05/05 05:27:44, ahe wrote: ...
3 years, 7 months ago (2017-05-05 05:49:01 UTC) #7
Siggi Cherem (dart-lang)
+kmillikin dart2js changes lgtm. At least for dart2js it seems like the kernel/ast.dart changes only ...
3 years, 7 months ago (2017-05-05 17:39:08 UTC) #9
Kevin Millikin (Google)
LGTM.
3 years, 7 months ago (2017-05-05 17:44:15 UTC) #10
sra1
Committed patchset #1 (id:20001) manually as dc8a4f21b8f32b4bfd73b51e86412b27a2c0f45d (presubmit successful).
3 years, 7 months ago (2017-05-05 21:40:52 UTC) #12
ahe
3 years, 7 months ago (2017-05-08 10:25:21 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/2864573002/diff/20001/pkg/kernel/lib/ast.dart
File pkg/kernel/lib/ast.dart (right):

https://codereview.chromium.org/2864573002/diff/20001/pkg/kernel/lib/ast.dart...
pkg/kernel/lib/ast.dart:4374: RangeError.checkValueInInterval(line, 1,
lineStarts.length, 'line');
On 2017/05/05 05:49:01, sra1 wrote:
> On 2017/05/05 05:27:44, ahe wrote:
> > Did you change the error message produced by
RangeError.checkValueInInterval?
> 
> No. I also think the RangeError description is confusing, but it is still
> confusing with this interpolated string repeating things that are printed with
> the message.
> 
> I would be supportive of an independent change to improve the corelib errors.

I'm surprised that this change was submitted although I had expressed concerns
about it and suggested ways to work around it.

Powered by Google App Engine
This is Rietveld 408576698