| Index: sdk/lib/io/secure_socket.dart
|
| diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart
|
| index 2ece3c92d3ac6d2d6ef6431ec6f0ad63b8979ed3..12ac7e090b690217517ee9fca6283f5198eec7b6 100644
|
| --- a/sdk/lib/io/secure_socket.dart
|
| +++ b/sdk/lib/io/secure_socket.dart
|
| @@ -641,7 +641,10 @@ class _SecureSocket implements SecureSocket {
|
|
|
|
|
| class _ExternalBuffer {
|
| + // Performance is improved if a full buffer of plaintext fits
|
| + // in the encrypted buffer, when encrypted.
|
| static final int SIZE = 8 * 1024;
|
| + static final int ENCRYPTED_SIZE = 10 * 1024;
|
| _ExternalBuffer() : start = 0, length = 0;
|
|
|
| // TODO(whesse): Consider making this a circular buffer. Only if it helps.
|
| @@ -653,7 +656,7 @@ class _ExternalBuffer {
|
| }
|
| }
|
|
|
| - int get free => SIZE - (start + length);
|
| + int get free => data.length - (start + length);
|
|
|
| List data; // This will be a ExternalByteArray, backed by C allocated data.
|
| int start;
|
|
|