From e3e02fa4638b207d74132b6443966fe698ea5e96 Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Fri, 29 Sep 2023 16:17:32 -0700 Subject: [PATCH] Let it do more sorting in memory --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 578cb2096..123cb66f4 100644 --- a/main.cpp +++ b/main.cpp @@ -2032,7 +2032,7 @@ std::pair read_input(std::vector &sources, char *fname, i vertex_readers.push_back(readers[i].vertexfile); rewind(readers[i].vertexfile); } - fqsort(vertex_readers, sizeof(vertex), vertexcmp, vertex_out); + fqsort(vertex_readers, sizeof(vertex), vertexcmp, vertex_out, memsize / 4); for (size_t i = 0; i < CPUS; i++) { if (fclose(readers[i].vertexfile) != 0) {