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

Issue 211373003: Speed up directory listing in pub. (Closed)

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

Description

Speed up directory listing in pub. Now that the Dart core sources are provided to barback, we walk the sdk's lib directory. In the built SDK, that isn't too bad, but in the source repo, that includes all of the sources for dart2js and pub, including pub's tests. This means running pub's tests is noticeably slower. Even outside of the repo, the source map change bumped up startup time by about half a second. This helps that, along with any other place that lists a directory. R=nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=34401

Patch Set 1 #

Total comments: 8

Patch Set 2 : Revise. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -114 lines) Patch
M sdk/lib/_internal/pub/lib/src/io.dart View 1 1 chunk +12 lines, -31 lines 0 comments Download
M sdk/lib/_internal/pub/test/io_test.dart View 1 2 chunks +0 lines, -83 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Bob Nystrom
6 years, 9 months ago (2014-03-25 17:25:30 UTC) #1
nweiz
Can we update the explicit Directory.list behavior in BuildEnvironment to use [listDir] now? https://codereview.chromium.org/211373003/diff/1/sdk/lib/_internal/pub/lib/src/io.dart File ...
6 years, 9 months ago (2014-03-25 18:55:07 UTC) #2
Bob Nystrom
> Can we update the explicit Directory.list behavior in BuildEnvironment to use [listDir] now? I ...
6 years, 9 months ago (2014-03-25 20:04:19 UTC) #3
nweiz
lgtm https://codereview.chromium.org/211373003/diff/1/sdk/lib/_internal/pub/lib/src/io.dart File sdk/lib/_internal/pub/lib/src/io.dart (right): https://codereview.chromium.org/211373003/diff/1/sdk/lib/_internal/pub/lib/src/io.dart#newcode248 sdk/lib/_internal/pub/lib/src/io.dart:248: var entities = new Directory(dir).listSync(recursive: recursive); On 2014/03/25 ...
6 years, 9 months ago (2014-03-25 20:14:11 UTC) #4
Bob Nystrom
https://codereview.chromium.org/211373003/diff/1/sdk/lib/_internal/pub/lib/src/io.dart File sdk/lib/_internal/pub/lib/src/io.dart (right): https://codereview.chromium.org/211373003/diff/1/sdk/lib/_internal/pub/lib/src/io.dart#newcode248 sdk/lib/_internal/pub/lib/src/io.dart:248: var entities = new Directory(dir).listSync(recursive: recursive); On 2014/03/25 20:14:12, ...
6 years, 9 months ago (2014-03-26 00:51:37 UTC) #5
Bob Nystrom
6 years, 9 months ago (2014-03-26 00:51:53 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r34401 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698