Commit 9c7b69e 1 parent eca1e18 commit 9c7b69e Copy full SHA for 9c7b69e
File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -1306,10 +1306,6 @@ impl<T> [T] {
1306
1306
/// This sort is stable (i.e. does not reorder equal elements) and `O(m n log(m n))`
1307
1307
/// worst-case, where the key function is `O(m)`.
1308
1308
///
1309
- /// For expensive key functions (e.g. functions that are not simple property accesses or
1310
- /// basic operations), [`sort_by_cached_key`](#method.sort_by_cached_key) is likely to be
1311
- /// significantly faster, as it does not recompute element keys.
1312
- ///
1313
1309
/// When applicable, unstable sorting is preferred because it is generally faster than stable
1314
1310
/// sorting and it doesn't allocate auxiliary memory.
1315
1311
/// See [`sort_unstable_by_key`](#method.sort_unstable_by_key).
@@ -1496,10 +1492,6 @@ impl<T> [T] {
1496
1492
/// randomization to avoid degenerate cases, but with a fixed seed to always provide
1497
1493
/// deterministic behavior.
1498
1494
///
1499
- /// Due to its key calling strategy, [`sort_unstable_by_key`](#method.sort_unstable_by_key)
1500
- /// is likely to be slower than [`sort_by_cached_key`](#method.sort_by_cached_key) in
1501
- /// cases where the key function is expensive.
1502
- ///
1503
1495
/// # Examples
1504
1496
///
1505
1497
/// ```
You can’t perform that action at this time.
0 commit comments