Skip to content

Commit

Permalink
Let it do more sorting in memory
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-f committed Sep 29, 2023
1 parent e9cc59a commit e3e02fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2032,7 +2032,7 @@ std::pair<int, metadata> read_input(std::vector<source> &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) {
Expand Down

0 comments on commit e3e02fa

Please sign in to comment.