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 934113002: Generate artificial hashCode for often used classes. (Closed)

Created:
5 years, 10 months ago by scheglov
Modified:
5 years, 10 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Generate artificial hashCode for often used classes. By avoiding calling Object.hashCode we analyze about 1% faster. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=43832

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M pkg/analysis_server/lib/src/services/index/index.dart View 2 chunks +13 lines, -0 lines 2 comments Download
M pkg/analyzer/lib/src/generated/engine.dart View 2 chunks +13 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/resolver.dart View 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
scheglov
5 years, 10 months ago (2015-02-17 23:23:37 UTC) #1
Paul Berry
lgtm
5 years, 10 months ago (2015-02-17 23:26:50 UTC) #2
Brian Wilkerson
LGTM
5 years, 10 months ago (2015-02-18 01:07:50 UTC) #3
scheglov
Committed patchset #1 (id:1) manually as 43832 (presubmit successful).
5 years, 10 months ago (2015-02-18 01:12:53 UTC) #4
kasperl
https://codereview.chromium.org/934113002/diff/1/pkg/analysis_server/lib/src/services/index/index.dart File pkg/analysis_server/lib/src/services/index/index.dart (right): https://codereview.chromium.org/934113002/diff/1/pkg/analysis_server/lib/src/services/index/index.dart#newcode330 pkg/analysis_server/lib/src/services/index/index.dart:330: final int _hashCode = _NEXT_HASH_CODE++; Have you considered masking ...
5 years, 10 months ago (2015-02-18 08:04:16 UTC) #6
scheglov
5 years, 10 months ago (2015-02-18 17:20:32 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/934113002/diff/1/pkg/analysis_server/lib/src/...
File pkg/analysis_server/lib/src/services/index/index.dart (right):

https://codereview.chromium.org/934113002/diff/1/pkg/analysis_server/lib/src/...
pkg/analysis_server/lib/src/services/index/index.dart:330: final int _hashCode =
_NEXT_HASH_CODE++;
On 2015/02/18 08:04:16, kasperl wrote:
> Have you considered masking here? If you start overflowing the smi limit, you
> might get considerably worse performance.

Good question.
See https://codereview.chromium.org/936823002

Powered by Google App Engine
This is Rietveld 408576698