You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: library/alloc/src/slice.rs
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1109,13 +1109,16 @@ where
1109
1109
// shallow copies of the contents of `v` without risking the dtors running on copies if
1110
1110
// `is_less` panics. When merging two sorted runs, this buffer holds a copy of the shorter run,
1111
1111
// which will always have length at most `len / 2`.
1112
-
letmut buf = Vec::with_capacity(len / 2);
1112
+
// `buf` is temporary = not passed around too much => using COOP_PREFERRED=true.
1113
+
// @FIXME move definitions of `buf` and `runs` down, after while end > 0 {...}, just before they are used. Then benchmark if it makes (cache-related) difference.
0 commit comments