Date: Tue, 23 Nov 2010 22:17:39 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh cd.c eval.c expand.c histedit.c memalloc.c memalloc.h miscbltin.c parser.c Message-ID: <201011232217.oANMHq3j011745@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2010-11-23 22:17:39 UTC
FreeBSD src repository
Modified files:
bin/sh cd.c eval.c expand.c histedit.c
memalloc.c memalloc.h miscbltin.c
parser.c
Log:
SVN rev 215783 on 2010-11-23 22:17:39Z by jilles
sh: Code size optimizations to "stack string" memory allocation:
* Prefer one CHECKSTRSPACE with multiple USTPUTC to multiple STPUTC.
* Add STPUTS macro (based on function) and use it instead of loops that add
nul-terminated strings to the stack string.
No functional change is intended, but code size is about 1K less on i386.
Revision Changes Path
1.44 +4 -8 src/bin/sh/cd.c
1.94 +1 -2 src/bin/sh/eval.c
1.75 +8 -9 src/bin/sh/expand.c
1.41 +1 -2 src/bin/sh/histedit.c
1.33 +17 -0 src/bin/sh/memalloc.c
1.14 +4 -0 src/bin/sh/memalloc.h
1.44 +6 -5 src/bin/sh/miscbltin.c
1.102 +6 -7 src/bin/sh/parser.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011232217.oANMHq3j011745>
