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

Issue 2119833002: Cache hashCode in Uri implementations to improve performance when used as, e.g., Map key. (Closed)

Created:
4 years, 5 months ago by Lasse Reichstein Nielsen
Modified:
4 years, 5 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Cache hashCode in Uri implementations to improve performance when used as, e.g., Map key. Most URI strings are short, but this still gives a 10%-20% improvement on doing repeated lookup in a large map of URIs in the VM, ~100% speedup in dart2js. Addresses feature request #18162 BUG= http://dartbug.com/18162 R=floitsch@google.com Committed: https://github.com/dart-lang/sdk/commit/a11ad27723b49939307c69d185d7ad5d783d4f5a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -5 lines) Patch
M sdk/lib/core/uri.dart View 6 chunks +16 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (4 generated)
Lasse Reichstein Nielsen
4 years, 5 months ago (2016-07-01 10:36:37 UTC) #2
floitsch
LGTM.
4 years, 5 months ago (2016-07-01 18:20:24 UTC) #5
Lasse Reichstein Nielsen
4 years, 5 months ago (2016-07-04 08:19:46 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
a11ad27723b49939307c69d185d7ad5d783d4f5a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698