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

Issue 207853002: Optimizations for hashCode. (Closed)

Created:
6 years, 9 months ago by scheglov
Modified:
6 years, 9 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org, ricow1
Visibility:
Public.

Description

Optimizations for hashCode. This improves Dart-based analyzer performance. dart2js: 12500 -> 11600 ms, about 900 ms or 7%. blueshift: 23500 -> 21500 ms, about 2000 ms or 8%. R=brianwilkerson@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=34318

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -40 lines) Patch
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java View 1 chunk +7 lines, -1 line 5 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/TypeImpl.java View 2 chunks +14 lines, -9 lines 0 comments Download
M pkg/analyzer/lib/src/generated/element.dart View 3 chunks +22 lines, -9 lines 0 comments Download
M pkg/analyzer/lib/src/generated/resolver.dart View 1 chunk +14 lines, -20 lines 0 comments Download
M pkg/analyzer/pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/generated/resolver_test.dart View 2 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scheglov
6 years, 9 months ago (2014-03-21 09:13:07 UTC) #1
Brian Wilkerson
https://codereview.chromium.org/207853002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java (right): https://codereview.chromium.org/207853002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java#newcode201 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java:201: int hashIdentifier = getIdentifier().hashCode(); ElementLocation goes to extra work ...
6 years, 9 months ago (2014-03-21 14:04:14 UTC) #2
scheglov
https://codereview.chromium.org/207853002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java (right): https://codereview.chromium.org/207853002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java#newcode201 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java:201: int hashIdentifier = getIdentifier().hashCode(); On 2014/03/21 14:04:14, Brian Wilkerson ...
6 years, 9 months ago (2014-03-21 16:41:10 UTC) #3
scheglov
https://codereview.chromium.org/207853002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java (right): https://codereview.chromium.org/207853002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java#newcode204 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java:204: cachedHashCode = hashIdentifier + enclosing.hashCode(); On 2014/03/21 16:41:10, scheglov ...
6 years, 9 months ago (2014-03-21 16:55:04 UTC) #4
Brian Wilkerson
LGTM
6 years, 9 months ago (2014-03-24 17:49:54 UTC) #5
scheglov
6 years, 9 months ago (2014-03-24 18:18:19 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 manually as r34318 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698