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

Side by Side Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 1841433003: Increase AST cache size to improve performance for large projects (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.src.task.dart; 5 library analyzer.src.task.dart;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 28 matching lines...) Expand all
39 import 'package:analyzer/src/task/strong/checker.dart'; 39 import 'package:analyzer/src/task/strong/checker.dart';
40 import 'package:analyzer/src/task/strong_mode.dart'; 40 import 'package:analyzer/src/task/strong_mode.dart';
41 import 'package:analyzer/task/dart.dart'; 41 import 'package:analyzer/task/dart.dart';
42 import 'package:analyzer/task/general.dart'; 42 import 'package:analyzer/task/general.dart';
43 import 'package:analyzer/task/model.dart'; 43 import 'package:analyzer/task/model.dart';
44 44
45 /** 45 /**
46 * The [ResultCachingPolicy] for ASTs. 46 * The [ResultCachingPolicy] for ASTs.
47 */ 47 */
48 const ResultCachingPolicy AST_CACHING_POLICY = 48 const ResultCachingPolicy AST_CACHING_POLICY =
49 const SimpleResultCachingPolicy(8192, 8192); 49 const SimpleResultCachingPolicy(16384, 16384);
50 50
51 /** 51 /**
52 * The [ResultCachingPolicy] for [Element]s. 52 * The [ResultCachingPolicy] for [Element]s.
53 */ 53 */
54 const ResultCachingPolicy ELEMENT_CACHING_POLICY = 54 const ResultCachingPolicy ELEMENT_CACHING_POLICY =
55 const SimpleResultCachingPolicy(-1, -1); 55 const SimpleResultCachingPolicy(-1, -1);
56 56
57 /** 57 /**
58 * The [ResultCachingPolicy] for [TOKEN_STREAM]. 58 * The [ResultCachingPolicy] for [TOKEN_STREAM].
59 */ 59 */
(...skipping 5294 matching lines...) Expand 10 before | Expand all | Expand 10 after
5354 5354
5355 @override 5355 @override
5356 bool moveNext() { 5356 bool moveNext() {
5357 if (_newSources.isEmpty) { 5357 if (_newSources.isEmpty) {
5358 return false; 5358 return false;
5359 } 5359 }
5360 currentTarget = _newSources.removeLast(); 5360 currentTarget = _newSources.removeLast();
5361 return true; 5361 return true;
5362 } 5362 }
5363 } 5363 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698