about summary refs log tree commit diff
path: root/src/libcollections/slice.rs
diff options
context:
space:
mode:
authorStjepan Glavina <stjepang@gmail.com>2017-03-18 20:24:44 +0100
committerStjepan Glavina <stjepang@gmail.com>2017-03-21 20:46:20 +0100
commitc4454a5507be95da969712ac0326055635efe778 (patch)
tree30a095b26d8994940a6bd53d5780b1f1a9a6fcfe /src/libcollections/slice.rs
parent942173b38fc0c202e8f28f266d6c4df4acfc5a91 (diff)
downloadrust-c4454a5507be95da969712ac0326055635efe778.tar.gz
rust-c4454a5507be95da969712ac0326055635efe778.zip
Tweak the constants a bit
Diffstat (limited to 'src/libcollections/slice.rs')
-rw-r--r--src/libcollections/slice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs
index 7090e90a6e4..5233887620a 100644
--- a/src/libcollections/slice.rs
+++ b/src/libcollections/slice.rs
@@ -1668,9 +1668,9 @@ fn merge_sort<T, F>(v: &mut [T], mut is_less: F)
     where F: FnMut(&T, &T) -> bool
 {
     // Slices of up to this length get sorted using insertion sort.
-    const MAX_INSERTION: usize = 16;
+    const MAX_INSERTION: usize = 20;
     // Very short runs are extended using insertion sort to span at least this many elements.
-    const MIN_RUN: usize = 8;
+    const MIN_RUN: usize = 10;
 
     // Sorting has no meaningful behavior on zero-sized types.
     if size_of::<T>() == 0 {