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

Issue 439223002: Add InternalStyle:rootLength to implement isAbsolute and rootPrefix. (Closed)

Created:
6 years, 4 months ago by Anders Johnsen
Modified:
6 years, 4 months ago
Reviewers:
nweiz, Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add InternalStyle:rootLength to implement isAbsolute and rootPrefix. This is the first step at adding a few helper methods for improving path package performance. BUG= R=nweiz@google.com, rnystrom@google.com Committed: https://code.google.com/p/dart/source/detail?r=38966

Patch Set 1 #

Total comments: 26

Patch Set 2 : Review update. #

Total comments: 6

Patch Set 3 : Cleanup. #

Patch Set 4 : Add windows test to 'document' \\server root prefix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -97 lines) Patch
M pkg/path/lib/src/context.dart View 1 3 chunks +3 lines, -6 lines 0 comments Download
M pkg/path/lib/src/internal_style.dart View 1 2 1 chunk +15 lines, -4 lines 0 comments Download
M pkg/path/lib/src/parsed_path.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/path/lib/src/style/posix.dart View 1 1 chunk +5 lines, -3 lines 0 comments Download
M pkg/path/lib/src/style/url.dart View 1 2 1 chunk +17 lines, -40 lines 0 comments Download
M pkg/path/lib/src/style/windows.dart View 1 2 chunks +30 lines, -43 lines 0 comments Download
M pkg/path/test/url_test.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M pkg/path/test/windows_test.dart View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Anders Johnsen
Benchmark: var sw = new Stopwatch()..start(); files .map((e) { p.rootPrefix(e.path); p.isAbsolute(e.path); }) .toList(growable: false); print(sw.elapsed); ...
6 years, 4 months ago (2014-08-04 08:17:11 UTC) #1
Bob Nystrom
https://codereview.chromium.org/439223002/diff/1/pkg/path/lib/src/internal_style.dart File pkg/path/lib/src/internal_style.dart (right): https://codereview.chromium.org/439223002/diff/1/pkg/path/lib/src/internal_style.dart#newcode36 pkg/path/lib/src/internal_style.dart:36: /// Returns the offset of the root part. Returns ...
6 years, 4 months ago (2014-08-04 17:17:32 UTC) #2
nweiz
I'd still very much like to see benchmark scripts included in the package. https://codereview.chromium.org/439223002/diff/1/pkg/path/lib/src/internal_style.dart File ...
6 years, 4 months ago (2014-08-04 20:11:58 UTC) #3
Anders Johnsen
Please elaborate on the form, location and framework to be used for benchmarks. I would ...
6 years, 4 months ago (2014-08-05 08:57:14 UTC) #4
Bob Nystrom
On 2014/08/05 08:57:14, Anders Johnsen wrote: > Please elaborate on the form, location and framework ...
6 years, 4 months ago (2014-08-05 15:47:43 UTC) #5
Bob Nystrom
LGTM on my end, but please get and LGTM from Natalie too. - bob
6 years, 4 months ago (2014-08-05 16:04:48 UTC) #6
nweiz
https://codereview.chromium.org/439223002/diff/1/pkg/path/lib/src/style/windows.dart File pkg/path/lib/src/style/windows.dart (right): https://codereview.chromium.org/439223002/diff/1/pkg/path/lib/src/style/windows.dart#newcode47 pkg/path/lib/src/style/windows.dart:47: return path.length; On 2014/08/05 08:57:14, Anders Johnsen wrote: > ...
6 years, 4 months ago (2014-08-05 20:22:27 UTC) #7
Anders Johnsen
PTAL https://codereview.chromium.org/439223002/diff/1/pkg/path/lib/src/style/windows.dart File pkg/path/lib/src/style/windows.dart (right): https://codereview.chromium.org/439223002/diff/1/pkg/path/lib/src/style/windows.dart#newcode47 pkg/path/lib/src/style/windows.dart:47: return path.length; On 2014/08/05 20:22:26, nweiz wrote: > ...
6 years, 4 months ago (2014-08-06 07:05:16 UTC) #8
nweiz
lgtm https://codereview.chromium.org/439223002/diff/1/pkg/path/lib/src/style/windows.dart File pkg/path/lib/src/style/windows.dart (right): https://codereview.chromium.org/439223002/diff/1/pkg/path/lib/src/style/windows.dart#newcode47 pkg/path/lib/src/style/windows.dart:47: return path.length; On 2014/08/06 07:05:15, Anders Johnsen wrote: ...
6 years, 4 months ago (2014-08-06 21:05:48 UTC) #9
Anders Johnsen
6 years, 4 months ago (2014-08-07 08:11:43 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 manually as 38966 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698