Skip to content

Commit 23e4bb3

Browse files
committed
Lower sort collation key threshold
1 parent 004d638 commit 23e4bb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uu/sort/src/sort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const POSITIVE: &u8 = &b'+';
134134
const MIN_AUTOMATIC_BUF_SIZE: usize = 512 * 1024; // 512 KiB
135135
const FALLBACK_AUTOMATIC_BUF_SIZE: usize = 32 * 1024 * 1024; // 32 MiB
136136
const MAX_AUTOMATIC_BUF_SIZE: usize = 1024 * 1024 * 1024; // 1 GiB
137-
const MAX_PRECOMPUTED_COLLATION_KEY_LINE_LEN: usize = 1024 * 1024; // 1 MiB
137+
const MAX_PRECOMPUTED_COLLATION_KEY_LINE_LEN: usize = u16::MAX as usize;
138138

139139
#[derive(Debug, Error)]
140140
pub enum SortError {

0 commit comments

Comments
 (0)