mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-11-04 18:06:28 +00:00
Use an unstable algorithm for grenad::Sorter when possible
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user