]> git.ipfire.org Git - thirdparty/util-linux.git/commit
more: make output redirection more efficient
authorSami Kerola <kerolasa@iki.fi>
Sat, 3 Aug 2013 23:15:20 +0000 (00:15 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 5 Aug 2013 08:47:47 +0000 (10:47 +0200)
commit2587c5937c506eb399e2012141c6d6b7d381552b
treed9aa097795f224be9a9bd49399238585ea7a304b
parentd2b7bc74d9d69bf5c40639d143a92f2e7b2df062
more: make output redirection more efficient

Especially with large inputs the change improves performance
considerably.

old> time more /boot/vmlinuz >/dev/null
real    0m0.224s

new> more /boot/vmlinuz >/dev/null
real    0m0.009s

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/more.c