sort: spawn fewer threads for small inputs
authorJim Meyering <meyering@redhat.com>
Thu, 10 Feb 2011 07:48:27 +0000 (08:48 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 13 Mar 2011 17:13:17 +0000 (18:13 +0100)
commite0245ae0aed72338d5dcb5b71f7a963859a93317
tree655a0448bd8f74c6f55c77a141a1990ae4275c1a
parent3ed0384c4171def286f5a9fbad4d89da7b0775aa
sort: spawn fewer threads for small inputs

* src/sort.c (SUBTHREAD_LINES_HEURISTIC): Do not spawn a new thread
for every 4 lines.  Increase this from 4 to 128K.  128K lines seems
appropriate for a 5-year-old dual-core laptop, but it is too low for
some common combinations of short lines and/or newer systems.
* NEWS (Bug fixes): Mention it.
NEWS
src/sort.c