diff options
author | Ron Yorston <rmy@pobox.com> | 2024-03-06 20:29:45 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-03-06 20:37:54 +0000 |
commit | f53b77dcfee44156aa2ead90748dca3df4c0b710 (patch) | |
tree | 506cd07e4d960440728c553b6ccc45c768911cab /arch | |
parent | 1273a1ddcab67c8ccca61c7c7c52c6049be4c336 (diff) | |
download | busybox-w32-f53b77dcfee44156aa2ead90748dca3df4c0b710.tar.gz busybox-w32-f53b77dcfee44156aa2ead90748dca3df4c0b710.tar.bz2 busybox-w32-f53b77dcfee44156aa2ead90748dca3df4c0b710.zip |
ash: fix 'read' built-in performance regression
Commits 8e6991733 and b2901ce8e fixed problems with the 'read'
shell built-in when the '-t' option was used. However, they
result in a performance penalty. This pipeline:
seq -w 0 999999 | while read line; do :; done
takes 10 times longer than prior to the changes.
If no timeout is specified don't call poll(2).
Costs 16 bytes in a 32-bit build; 0 in 64-bit.
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions