Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed7adcf

Browse files
committed
Tim's quicksort on May 13.
1 parent b705764 commit ed7adcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/listobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ docompare(x, y, compare)
631631
good assumption for Python), it should be 10, which is the cutoff
632632
point: quicksort requires more comparisons than insertion sort for
633633
smaller arrays. */
634-
#define MINSIZE 12
634+
#define MINSIZE 10
635635

636636
/* Straight insertion sort. More efficient for sorting small arrays. */
637637

0 commit comments

Comments
 (0)