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

Issue 1319303004: Optimize successive calls SourceFile.getLine(). (Closed)

Created:
5 years, 3 months ago by Bob Nystrom
Modified:
5 years, 1 month ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/source_span.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add boundary case checking back in and remove tests for old binary search. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -63 lines) Patch
M CHANGELOG.md View 1 chunk +4 lines, -0 lines 0 comments Download
M lib/src/file.dart View 1 3 chunks +60 lines, -2 lines 0 comments Download
M lib/src/location.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download
M lib/src/utils.dart View 1 chunk +0 lines, -23 lines 0 comments Download
M pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download
M test/utils_test.dart View 1 1 chunk +0 lines, -34 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Bob Nystrom
This makes the YAML benchmark somewhere around 25-35% faster.
5 years, 3 months ago (2015-09-01 23:58:07 UTC) #2
nweiz
lgtm https://codereview.chromium.org/1319303004/diff/1/lib/src/file.dart File lib/src/file.dart (right): https://codereview.chromium.org/1319303004/diff/1/lib/src/file.dart#newcode99 lib/src/file.dart:99: return _cachedLine = _binarySearch(offset) - 1; This is ...
5 years, 3 months ago (2015-09-02 00:06:31 UTC) #3
Bob Nystrom
5 years, 3 months ago (2015-09-02 00:37:19 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
02eff66dd575747d607b5d17fc7206835b7231a6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698