Use an unstable algorithm for grenad::Sorter when possible

This commit is contained in:
Loïc Lecrenier
2022-09-13 10:40:37 +02:00
parent f8697075ea
commit 3794962330
14 changed files with 18 additions and 1 deletions

View File

@ -27,6 +27,7 @@ pub fn create_writer<R: io::Write>(
}
pub fn create_sorter(
sort_algorithm: grenad::SortAlgorithm,
merge: MergeFn,
chunk_compression_type: grenad::CompressionType,
chunk_compression_level: Option<u32>,
@ -45,6 +46,7 @@ pub fn create_sorter(
builder.dump_threshold(memory);
builder.allow_realloc(false);
}
builder.sort_algorithm(sort_algorithm);
builder.build()
}