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

Issue 1666113002: Improve performance of Library::LookupLibrary(const String&). (Closed)

Created:
4 years, 10 months ago by kasperl
Modified:
4 years, 10 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Improve performance of Library::LookupLibrary(const String&). Make sure that String::Equals(const String&) checks the hash codes on the strings if they are available. Before this change, only String::Equals(const Instance&) would consult the hash codes. R=iposva@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/42dfb86459d2e7d7b07f5bb1d85a8793b9deff3c

Patch Set 1 #

Total comments: 15
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -27 lines) Patch
M runtime/vm/object.h View 3 chunks +10 lines, -21 lines 2 comments Download
M runtime/vm/object.cc View 3 chunks +35 lines, -6 lines 13 comments Download

Messages

Total messages: 8 (1 generated)
kasperl
4 years, 10 months ago (2016-02-04 11:03:43 UTC) #1
Ivan Posva
https://codereview.chromium.org/1666113002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (left): https://codereview.chromium.org/1666113002/diff/1/runtime/vm/object.cc#oldcode19592 runtime/vm/object.cc:19592: if (!other.IsString() || other.IsNull()) { This removal is not ...
4 years, 10 months ago (2016-02-05 04:53:54 UTC) #2
kasperl
https://codereview.chromium.org/1666113002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (left): https://codereview.chromium.org/1666113002/diff/1/runtime/vm/object.cc#oldcode19592 runtime/vm/object.cc:19592: if (!other.IsString() || other.IsNull()) { On 2016/02/05 04:53:54, Ivan ...
4 years, 10 months ago (2016-02-05 05:09:26 UTC) #3
kasperl
https://codereview.chromium.org/1666113002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1666113002/diff/1/runtime/vm/object.cc#newcode10338 runtime/vm/object.cc:10338: intptr_t key_value = url.Hash() & kIntptrMax; Here's the url.Hash() ...
4 years, 10 months ago (2016-02-05 05:14:18 UTC) #4
Ivan Posva
LGTM -ip https://codereview.chromium.org/1666113002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (left): https://codereview.chromium.org/1666113002/diff/1/runtime/vm/object.cc#oldcode19592 runtime/vm/object.cc:19592: if (!other.IsString() || other.IsNull()) { On 2016/02/05 ...
4 years, 10 months ago (2016-02-05 05:57:42 UTC) #5
kasperl
Thanks for the review!
4 years, 10 months ago (2016-02-05 07:57:32 UTC) #6
kasperl
4 years, 10 months ago (2016-02-05 08:55:09 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
42dfb86459d2e7d7b07f5bb1d85a8793b9deff3c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698