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

Issue 1448243002: Specialize Glob for the often case of suffix matching. (Closed)

Created:
5 years, 1 month ago by scheglov
Modified:
5 years, 1 month ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Specialize Glob for the often case of suffix matching. This makes it about 2.5 times faster in the micro-benchmark. No noticable difference for DAS. R=brianwilkerson@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/96b494665e0aeb6e3b7ed37bf3db52d4c50cbfc9

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -8 lines) Patch
M pkg/analyzer/lib/src/util/glob.dart View 3 chunks +35 lines, -8 lines 1 comment Download
M pkg/analyzer/test/src/util/glob_test.dart View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scheglov
5 years, 1 month ago (2015-11-17 05:26:31 UTC) #1
Brian Wilkerson
LGTM https://codereview.chromium.org/1448243002/diff/1/pkg/analyzer/lib/src/util/glob.dart File pkg/analyzer/lib/src/util/glob.dart (right): https://codereview.chromium.org/1448243002/diff/1/pkg/analyzer/lib/src/util/glob.dart#newcode41 pkg/analyzer/lib/src/util/glob.dart:41: _suffix = _pattern.substring(4); Probably ought to use toLowerCase() ...
5 years, 1 month ago (2015-11-17 14:54:08 UTC) #2
scheglov
5 years, 1 month ago (2015-11-17 18:23:23 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
96b494665e0aeb6e3b7ed37bf3db52d4c50cbfc9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698