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

Unified Diff: pkg/analyzer/lib/instrumentation/instrumentation.dart

Issue 2015513003: Optimize more megamorphic dispatch sites (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/context/cache.dart » ('j') | pkg/analyzer/lib/src/context/cache.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/instrumentation/instrumentation.dart
diff --git a/pkg/analyzer/lib/instrumentation/instrumentation.dart b/pkg/analyzer/lib/instrumentation/instrumentation.dart
index 3e93fb738489579ad6c47188e5b2cda0655a99f6..eaf95ba56e87dcb58533c1c65fffc63c39c11de9 100644
--- a/pkg/analyzer/lib/instrumentation/instrumentation.dart
+++ b/pkg/analyzer/lib/instrumentation/instrumentation.dart
@@ -320,9 +320,10 @@ class InstrumentationService {
String _join(List<String> fields) {
StringBuffer buffer = new StringBuffer();
buffer.write(_timestamp);
- for (String field in fields) {
+ int length = fields.length;
+ for (int i = 0; i < length; i++) {
buffer.write(':');
- _escape(buffer, field);
+ _escape(buffer, fields[i]);
}
return buffer.toString();
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/context/cache.dart » ('j') | pkg/analyzer/lib/src/context/cache.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698