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

Side by Side Diff: runtime/bin/vmservice/vmservice_io.dart

Issue 2254543006: Reduce copying in sending service responses. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: dbc, sync Created 4 years, 4 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 | « runtime/bin/vmservice/server.dart ('k') | runtime/platform/text_buffer.h » ('j') | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 vmservice_io; 5 library vmservice_io;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:io'; 10 import 'dart:io';
11 import 'dart:isolate'; 11 import 'dart:isolate';
12 import 'dart:typed_data';
12 import 'dart:_vmservice'; 13 import 'dart:_vmservice';
13 14
14 part 'loader.dart'; 15 part 'loader.dart';
15 part 'server.dart'; 16 part 'server.dart';
16 17
17 // The TCP ip/port that the HTTP server listens on. 18 // The TCP ip/port that the HTTP server listens on.
18 int _port; 19 int _port;
19 String _ip; 20 String _ip;
20 // Should the HTTP server auto start? 21 // Should the HTTP server auto start?
21 bool _autoStart; 22 bool _autoStart;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 Timer.run(() {}); 215 Timer.run(() {});
215 } 216 }
216 scriptLoadPort.handler = _processLoadRequest; 217 scriptLoadPort.handler = _processLoadRequest;
217 // Register signal handler after a small delay to avoid stalling main 218 // Register signal handler after a small delay to avoid stalling main
218 // isolate startup. 219 // isolate startup.
219 _registerSignalHandlerTimer = new Timer(shortDelay, _registerSignalHandler); 220 _registerSignalHandlerTimer = new Timer(shortDelay, _registerSignalHandler);
220 return scriptLoadPort; 221 return scriptLoadPort;
221 } 222 }
222 223
223 _shutdown() native "VMServiceIO_Shutdown"; 224 _shutdown() native "VMServiceIO_Shutdown";
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/server.dart ('k') | runtime/platform/text_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698