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

Issue 1149893004: Add and use AnalysisCache.sources getter. (Closed)

Created:
5 years, 7 months ago by scheglov
Modified:
5 years, 7 months 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

Add and use AnalysisCache.sources getter. This is not ideal, we might still want to start managing 'containingLibraries' at some point. But it speeds up switching between file 10x - DartCompletionCache request of all top-level elements takes now about 170 ms, vs. 1800 ms before. Also, we need "sources" in many places of AnalysisContext. R=brianwilkerson@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/deddddc9e51cc6d04b0a6691f34f7d480d2cb8c9

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -77 lines) Patch
M pkg/analyzer/lib/src/context/cache.dart View 7 chunks +35 lines, -0 lines 1 comment Download
M pkg/analyzer/lib/src/context/context.dart View 11 chunks +51 lines, -77 lines 0 comments Download
M pkg/analyzer/test/src/context/cache_test.dart View 2 chunks +28 lines, -0 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
scheglov
5 years, 7 months ago (2015-05-21 02:53:34 UTC) #1
Brian Wilkerson
LGTM https://codereview.chromium.org/1149893004/diff/1/pkg/analyzer/lib/src/context/cache.dart File pkg/analyzer/lib/src/context/cache.dart (right): https://codereview.chromium.org/1149893004/diff/1/pkg/analyzer/lib/src/context/cache.dart#newcode821 pkg/analyzer/lib/src/context/cache.dart:821: void _addSource(AnalysisTarget target) { I was confused when ...
5 years, 7 months ago (2015-05-21 13:52:31 UTC) #2
scheglov
5 years, 7 months ago (2015-05-21 15:33:31 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
deddddc9e51cc6d04b0a6691f34f7d480d2cb8c9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698