diff options
author | Steve Bennett <steveb@workware.net.au> | 2023-01-31 16:51:41 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2023-01-31 16:53:23 +1000 |
commit | e44134667c52674c0b9bfdab303dc8ddc1c933b8 (patch) | |
tree | b2c2233f4d48ccfa4036be3261cad8991268aaad /jim.c | |
parent | 5a09d43250a51c2dc3c76dfebf5184c75b1c410e (diff) | |
download | jimtcl-e44134667c52674c0b9bfdab303dc8ddc1c933b8.zip jimtcl-e44134667c52674c0b9bfdab303dc8ddc1c933b8.tar.gz jimtcl-e44134667c52674c0b9bfdab303dc8ddc1c933b8.tar.bz2 |
aio copyto: improve performance for large copies
Rather than continuing to use a small buffer for large copies,
if the size exceeds a certain threshold (currently 16kB) switch
to a larger, allocated buffer (currently 64kB).
This should speed up large copies without penalising small copies.
Note that these are simply heuristics and may not be appropriate
on all systems.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.c')
0 files changed, 0 insertions, 0 deletions