SVNews r318502

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-05-18 22:10:04 - r318502 by jilles (Jilles Tjoelker)

Complete list of files affected by revision r318502:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/bin/sh/output.c  

Commit message:

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.

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 19 ms, 1 file printed. Current time is 2017-05-24 02:18:22. All times are in UTC/GMT.