[PATCH] true,false: avoid initialization overhead unless needed

2014-07-07 Thread Bernhard Voelker
This is a minor performance improvement: $ strace -fv /bin/true --xxx 2>&1 | wc -l 105 $ strace -fv src/true --xxx 2>&1 | wc -l 26 $ time for i in $(seq 1000) ; do /bin/true --xxx ; done >/dev/null real 0m5.083s user 0m0.481s sys 0m4.319s $ time for i in $(seq 1000) ; do

Re: [PATCH] true,false: avoid initialization overhead unless needed

2014-07-07 Thread Pádraig Brady
On 07/07/2014 09:48 AM, Bernhard Voelker wrote: > This is a minor performance improvement: > > $ strace -fv /bin/true --xxx 2>&1 | wc -l > 105 > > $ strace -fv src/true --xxx 2>&1 | wc -l > 26 > > $ time for i in $(seq 1000) ; do /bin/true --xxx ; done >/dev/null > > real0m5.083

Re: [PATCH v2] build: Option for building all tools in a single binary

2014-07-07 Thread Pádraig Brady
On 07/07/2014 12:41 AM, Bernhard Voelker wrote: > On 07/05/2014 03:40 PM, Pádraig Brady wrote: >> On 07/04/2014 05:06 PM, Pádraig Brady wrote: >> Rolled up for easy application on master: >> http://www.pixelbeat.org/cu/single-binary_v8.patch > > Thanks for squashing into one patch. > Here some com

Re: [PATCH v2] build: Option for building all tools in a single binary

2014-07-07 Thread Alex Deymo
Hi! I'm back. On Mon, Jul 7, 2014 at 8:40 AM, Pádraig Brady wrote: > On 07/07/2014 12:41 AM, Bernhard Voelker wrote: > > On 07/05/2014 03:40 PM, Pádraig Brady wrote: > > > > 15. src/coreutils-{arch,dir,vdir}.c wrapper: > > Why don't we do this also in non-single-binary case? ;-) > > leaving as i