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

Issue 2602863002: Speed up _wouldBeTooManyUsers. (Closed)

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

Description

Speed up _wouldBeTooManyUsers. On my current dart-program, this reduced compilation time by a third. $ # before applying the patch: $ time sdk/bin/dart2js --packages=sdk/.packages --out=/tmp/foo.js /tmp/bug2.dart Dart file (/tmp/bug2.dart) compiled to JavaScript: /tmp/foo.js real 0m29.859s user 0m33.931s sys 0m1.530s $ time sdk/bin/dart2js --packages=sdk/.packages --out=/tmp/foo.js /tmp/bug2.dart Dart file (/tmp/bug2.dart) compiled to JavaScript: /tmp/foo.js real 0m30.062s user 0m34.012s sys 0m1.558s $ # ----------------- apply the patch. $ git stash pop $ time sdk/bin/dart2js --packages=sdk/.packages --out=/tmp/foo.js /tmp/bug2.dart Dart file (/tmp/bug2.dart) compiled to JavaScript: /tmp/foo.js real 0m20.782s user 0m24.540s sys 0m1.750s $ time sdk/bin/dart2js --packages=sdk/.packages --out=/tmp/foo.js /tmp/bug2.dart Dart file (/tmp/bug2.dart) compiled to JavaScript: /tmp/foo.js real 0m21.042s user 0m24.495s sys 0m2.173s BUG= R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/968fcc5c625a1af8b9b061b4fb150772eb92f4fa

Patch Set 1 #

Patch Set 2 : Remove dead code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M pkg/compiler/lib/src/inferrer/node_tracer.dart View 1 1 chunk +8 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
floitsch
3 years, 11 months ago (2016-12-28 15:37:28 UTC) #2
Siggi Cherem (dart-lang)
lgtm, thanks!
3 years, 11 months ago (2016-12-28 15:44:08 UTC) #3
floitsch
3 years, 11 months ago (2016-12-29 13:40:51 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
968fcc5c625a1af8b9b061b4fb150772eb92f4fa (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698