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

Issue 1310423004: Hoist tokenizing RegExps out. (Closed)

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

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -11 lines) Patch
M lib/src/loader.dart View 6 chunks +18 lines, -11 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Bob Nystrom
This also has the benchmark changes. I'll rebase those out after that lands.
5 years, 3 months ago (2015-09-02 00:00:25 UTC) #2
nweiz
lgtm https://codereview.chromium.org/1310423004/diff/1/lib/src/loader.dart File lib/src/loader.dart (right): https://codereview.chromium.org/1310423004/diff/1/lib/src/loader.dart#newcode24 lib/src/loader.dart:24: final _nanRegExp = new RegExp(r"^\.(nan|NaN|NAN)$"); All these symbols ...
5 years, 3 months ago (2015-09-02 00:07:57 UTC) #3
Bob Nystrom
Committed patchset #2 (id:20001) manually as b7bb9425991739a81ad27ddb1fdbc2a2b4fbd3a7 (presubmit successful).
5 years, 3 months ago (2015-09-02 00:13:16 UTC) #4
Bob Nystrom
5 years, 3 months ago (2015-09-02 00:13:32 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/1310423004/diff/1/lib/src/loader.dart
File lib/src/loader.dart (right):

https://codereview.chromium.org/1310423004/diff/1/lib/src/loader.dart#newcode24
lib/src/loader.dart:24: final _nanRegExp = new RegExp(r"^\.(nan|NaN|NAN)$");
On 2015/09/02 00:07:57, nweiz wrote:
> All these symbols are blurring together. You don't have to document all these,
> but please do separate them with whitespace.

Commented.

https://codereview.chromium.org/1310423004/diff/1/lib/src/loader.dart#newcode196
lib/src/loader.dart:196: // TODO(nweiz): stop using regexps.
On 2015/09/02 00:07:56, nweiz wrote:
> You can remove this.

Done.

Powered by Google App Engine
This is Rietveld 408576698