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

Issue 1311673009: dart2js cps: Use a global counter to generate hash codes. (Closed)

Created:
5 years, 3 months ago by asgerf
Modified:
5 years, 3 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js cps: Use a global counter to generate hash codes. This gives almost 30x compile-time speedup on ImagingGaussianBlurOnce. Based on profiling with Observatory, it seems to be a performance bug in how hash codes are stored on objects. The majority of time is spent in Object_GetHash, which does not compute a hash, but looks it up in a weak hash table in the VM. R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/82e95e3053b37cdd27494a723abe75d18709409a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
asgerf
5 years, 3 months ago (2015-08-26 13:13:43 UTC) #2
Kevin Millikin (Google)
lgtm
5 years, 3 months ago (2015-08-26 13:56:33 UTC) #3
asgerf
5 years, 3 months ago (2015-08-26 14:47:17 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
82e95e3053b37cdd27494a723abe75d18709409a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698