summaryrefslogtreecommitdiffstats
path: root/sbin/geom
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-12-27 15:52:18 +0000
committerjilles <jilles@FreeBSD.org>2013-12-27 15:52:18 +0000
commitab778292cf6106002b1414f219def70d15349478 (patch)
treec5b5239b2231d2f328ae5ee7c334f647dbfdf8ba /sbin/geom
parent8b6b2d3d8496d46a93fc4e85bb15252cc5b500c9 (diff)
downloadFreeBSD-src-ab778292cf6106002b1414f219def70d15349478.zip
FreeBSD-src-ab778292cf6106002b1414f219def70d15349478.tar.gz
sh: Don't check input for non-whitespace if history is disabled.
preadbuffer() maintained a flag whether there was any non-whitespace character. This flag is only useful when history is enabled (in that case, lines containing only whitespace are not added to history). Instead, check using strspn() when history is enabled. There is an approximate 2% speedup when running sh -c '. /etc/rc.subr; . /etc/defaults/rc.conf; source_rc_confs' with hot cache.
Diffstat (limited to 'sbin/geom')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud