sort: speed up default full line sorting
commitb084d6bcb51ddb19c6febe3c3ab343b89efdd2f2
authorChen Guo <chenguo4@yahoo.com>
Wed, 14 Jul 2010 06:41:05 +0000 (14 07:41 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 15 Jul 2010 00:10:12 +0000 (15 01:10 +0100)
treed2439ab98e731a041ec3c0d32029ebf5aa9ddd0d
parentc5e350ec5625d7346c2a088fe478060358200c14
sort: speed up default full line sorting

Don't write NUL after the comparison buffers on each compare,
which increases performance by about 3% for short lines
on a pentium-m with gcc-4.4.1

* src/sort.c: (fillbuf): Delimit input items with NUL.
(write_bytes): Restore the item delimiter char which was
replaced with NUL in fillbuf().
src/sort.c