Files
rust/src/liballoc
Mazdak Farrokhzad 9ee373fd94 Rollup merge of #69784 - benesch:fast-strip-prefix-suffix, r=kennytm
Optimize strip_prefix and strip_suffix with str patterns

As mentioned in https://github.com/rust-lang/rust/issues/67302#issuecomment-585639226.
I'm not sure whether adding these methods to `Pattern` is desirable—but they have default implementations so the change is backwards compatible. Plus it seems like they're slated for wholesale replacement soon anyway? #56345

----

Constructing a Searcher in strip_prefix and strip_suffix is
unnecessarily slow when the pattern is a fixed-length string. Add
strip_prefix and strip_suffix methods to the Pattern trait, and add
optimized implementations of these methods in the str implementation.
The old implementation is retained as the default for these methods.
2020-03-31 15:59:40 +02:00
..
2020-03-03 00:08:24 +01:00
2020-03-24 17:35:40 +00:00
2019-11-29 20:25:07 -08:00
2020-03-08 11:01:12 +01:00
2019-12-22 17:42:47 -05:00
2019-12-22 17:42:47 -05:00
2020-03-08 11:01:12 +01:00
2019-12-22 17:42:47 -05:00
2020-03-15 19:43:25 +01:00
2019-08-04 14:50:26 +02:00
2019-09-27 17:36:45 -04:00
2020-03-08 11:01:12 +01:00
2019-12-22 17:42:47 -05:00
2020-03-23 15:45:30 +01:00
2019-11-29 20:25:07 -08:00