-/* If the user asks for a *lot* of threads, lets give some results as
- * quickly as possible and let the user read those while we compute
- * the remainder. */
-#define NOTMUCH_SHOW_INITIAL_BURST 100
-
-static void
+/* If the user asks for more than this number of threads, then break
+ the results down into chunks so that results start appearing
+ quickly rather than the user having to wait until all results are
+ available before anything appears.
+
+ Since each subsequent chunk ends up having to re-do threading work
+ done by all previous chunks, we double the chunk size repeatedly
+ until all desired results have been returned.
+*/
+#define NOTMUCH_SEARCH_INITIAL_CHUNK_SIZE 100
+
+/* Do the actual search for a chunk of threads and display the results,
+ (returning the number of threads found in this chunk). */
+static int