rust/library/core/src/slice
bors 8b87fefd76 Auto merge of #138537 - yotamofek:pr/lib/multi-char-pattern, r=jhpratt
Optimize multi-char string patterns

Uses specialization for `[T]::contains` from #130991 to optimize multi-char patterns in string searches.
Requesting a perf run to see if this actually has an effect 🙏
(I think that adding `char` to the list of types for which the `SliceContains` is specialized is a good idea, even if it doesn't show up on perf - might be helpful for downstream users)
2025-03-16 14:23:18 +00:00
..
iter rename sub_ptr 😅 2025-02-23 23:11:00 +07:00
sort library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
ascii.rs Remove #[cfg(not(test))] gates in core 2025-03-06 13:21:59 -08:00
cmp.rs Optimize multi-char string patterns 2025-03-15 14:14:25 +00:00
index.rs add const_eval_select macro to reduce redundancy 2024-11-05 09:26:08 +01:00
iter.rs Save another BB by using SubUnchecked instead of a call to arith_offset 2025-02-14 22:24:27 -08:00
memchr.rs library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
mod.rs Rollup merge of #138082 - thaliaarchi:slice-cfg-not-test, r=thomcc 2025-03-16 09:40:05 +08:00
raw.rs library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
rotate.rs library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
specialize.rs Remove size_of == 1 case from fill specialization. 2021-08-09 19:25:28 +02:00