Jilles Tjoelker
29717eb029
sh: Keep output buffer across builtins.
...
Allocating and deallocating repeatedly the 1024-byte buffer for stdout from
builtins costs CPU time for little or no benefit.
A simple loop containing builtins that write to a file descriptor, such as
i=0; while [ "$i" -lt 1000000 ]; do printf .; i=$((i+1)); done >/dev/null
is over 10% faster in a simple benchmark on an amd64 virtual machine.
2017-05-18 22:10:04 +00:00
..
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2016-10-05 18:26:39 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-25 13:32:28 +00:00
2017-02-28 23:42:47 +00:00
2017-05-09 01:48:23 +00:00
2017-03-04 11:31:08 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2016-10-05 19:26:35 +00:00
2017-03-04 11:31:08 +00:00
2016-02-09 16:58:50 +00:00
2017-02-28 23:42:47 +00:00
2016-11-28 07:21:09 +00:00
2017-03-05 21:56:04 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-07 05:10:38 +00:00
2017-03-07 04:51:35 +00:00
2017-03-09 04:20:00 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-04 11:31:08 +00:00
2017-02-28 23:42:47 +00:00
2016-06-08 05:32:39 +00:00
2017-05-18 22:10:04 +00:00
2017-02-28 23:42:47 +00:00
2017-05-07 11:44:25 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2016-05-04 23:20:53 +00:00
2016-08-03 18:04:08 +00:00
2015-10-05 21:41:55 +00:00