@@ -1252,12 +1252,13 @@ impl<T> [T] {
1252
1252
///
1253
1253
/// # Current implementation
1254
1254
///
1255
- /// The current algorithm is based on Orson Peters' [pattern-defeating quicksort][pdqsort],
1256
- /// which is a quicksort variant designed to be very fast on certain kinds of patterns,
1257
- /// sometimes achieving linear time. It is randomized but deterministic, and falls back to
1258
- /// heapsort on degenerate inputs.
1255
+ /// The current algorithm is based on [pattern-defeating quicksort][pdqsort] by Orson Peters,
1256
+ /// which combines the fast average case of randomized quicksort with the fast worst case of
1257
+ /// heapsort, while achieving linear time on slices with certain patterns. It uses some
1258
+ /// randomization to avoid degenerate cases, but with a fixed seed to always provide
1259
+ /// deterministic behavior.
1259
1260
///
1260
- /// It is generally faster than stable sorting, except in a few special cases, e.g. when the
1261
+ /// It is typically faster than stable sorting, except in a few special cases, e.g. when the
1261
1262
/// slice consists of several concatenated sorted sequences.
1262
1263
///
1263
1264
/// # Examples
@@ -1286,12 +1287,13 @@ impl<T> [T] {
1286
1287
///
1287
1288
/// # Current implementation
1288
1289
///
1289
- /// The current algorithm is based on Orson Peters' [pattern-defeating quicksort][pdqsort],
1290
- /// which is a quicksort variant designed to be very fast on certain kinds of patterns,
1291
- /// sometimes achieving linear time. It is randomized but deterministic, and falls back to
1292
- /// heapsort on degenerate inputs.
1290
+ /// The current algorithm is based on [pattern-defeating quicksort][pdqsort] by Orson Peters,
1291
+ /// which combines the fast average case of randomized quicksort with the fast worst case of
1292
+ /// heapsort, while achieving linear time on slices with certain patterns. It uses some
1293
+ /// randomization to avoid degenerate cases, but with a fixed seed to always provide
1294
+ /// deterministic behavior.
1293
1295
///
1294
- /// It is generally faster than stable sorting, except in a few special cases, e.g. when the
1296
+ /// It is typically faster than stable sorting, except in a few special cases, e.g. when the
1295
1297
/// slice consists of several concatenated sorted sequences.
1296
1298
///
1297
1299
/// # Examples
@@ -1323,12 +1325,13 @@ impl<T> [T] {
1323
1325
///
1324
1326
/// # Current implementation
1325
1327
///
1326
- /// The current algorithm is based on Orson Peters' [pattern-defeating quicksort][pdqsort],
1327
- /// which is a quicksort variant designed to be very fast on certain kinds of patterns,
1328
- /// sometimes achieving linear time. It is randomized but deterministic, and falls back to
1329
- /// heapsort on degenerate inputs.
1328
+ /// The current algorithm is based on [pattern-defeating quicksort][pdqsort] by Orson Peters,
1329
+ /// which combines the fast average case of randomized quicksort with the fast worst case of
1330
+ /// heapsort, while achieving linear time on slices with certain patterns. It uses some
1331
+ /// randomization to avoid degenerate cases, but with a fixed seed to always provide
1332
+ /// deterministic behavior.
1330
1333
///
1331
- /// It is generally faster than stable sorting, except in a few special cases, e.g. when the
1334
+ /// It is typically faster than stable sorting, except in a few special cases, e.g. when the
1332
1335
/// slice consists of several concatenated sorted sequences.
1333
1336
///
1334
1337
/// # Examples
0 commit comments