This change was inspired by a similar proposal by Stepan Kasal.
authorJim Meyering <jim@meyering.net>
Sun, 27 Jul 2003 08:26:49 +0000 (08:26 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 27 Jul 2003 08:26:49 +0000 (08:26 +0000)
commit665f7a2d0f29b31eadcd026a884ed05c480c4d9d
tree88db5c79328c175778a4a471fde590d32d34e934
parent9ee5095608ee400767ed256a23c4ff28fa4b321a
This change was inspired by a similar proposal by Stepan Kasal.

(mergelines, sortlines_temp): New functions.
(sortlines): Use them, to reduce the number of times that
we need to copy 'struct line' values.  This improved CPU
performance by about 30% on one 18 MB test.
(sort): Don't invoke sortlines unless we have 2 or more lines.
src/sort.c