jilles
e222a7286a
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
2017-05-14 13:14:19 +00:00
2017-04-16 22:10:02 +00:00
2017-02-28 23:42:47 +00:00
2014-08-20 20:15:43 +00:00
2015-03-01 21:46:55 +00:00
2015-03-01 21:46:55 +00:00
2017-03-18 20:41:07 +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-05-18 21:44:14 +00:00
2017-02-28 23:42:47 +00:00
2017-05-06 13:28:42 +00:00
2017-02-28 23:42:47 +00:00
2017-05-14 13:14:19 +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-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-04 11:31:08 +00:00
2016-02-24 17:20:11 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-04-12 21:15:55 +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-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-05-06 13:28:42 +00:00
2017-02-28 23:42:47 +00:00
2017-05-18 22:10:04 +00:00
2017-05-16 21:54:51 +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-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-05-06 13:28:42 +00:00
2017-04-22 21:31:37 +00:00
2017-04-22 21:31:37 +00:00
2017-05-07 19:49:46 +00:00
2017-02-28 23:42:47 +00:00