diff options
author | Robey Pointer <robey@lag.net> | 2004-06-10 18:02:13 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2004-06-10 18:02:13 +0000 |
commit | f0ba3c482eb937a450cac99b578a6197ed54101b (patch) | |
tree | 39667c10c66edd74e283ebe42e3289ff59044b29 /user_rsa_key | |
parent | cba104ce3f83ef7844ae9598502a974a36ce8682 (diff) |
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-59]
speed up parts of BufferedFile
BufferedFile uses cStringIO for the write buffer now (i don't actually notice
any speed difference so this might revert later) and the default buffer size
has been upped from 1KB to 8KB.
when scanning for linefeeds (when writing to a line-buffered file), only scan
the newly-written bytes, since we know all the previously buffered data is
linefeed-free. this was the #1 slowdown on the 1MB-file unit test.
also, limit the buffering on line-buffered files to whatever the default
buffer size is. there's no reason to buffer 1MB waiting for a linefeed.
Diffstat (limited to 'user_rsa_key')
0 files changed, 0 insertions, 0 deletions