rust/library/core/src
Dylan DPC 4af965e732
Rollup merge of #81837 - gilescope:to_ascii_speedups, r=dtolnay
Slight perf improvement on char::to_ascii_lowercase

`char::to_ascii_lowercase()` was checking if it was ascii and then if it was in the right range. Instead propose to check once (I think removing a compare and a shift in the process: [godbolt](https://godbolt.org/z/e5Tora) ).

before:
```
        test char::methods::bench_to_ascii_lowercase                    ... bench:      11,196 ns/iter (+/- 632)
        test char::methods::bench_to_ascii_uppercase                    ... bench:      11,656 ns/iter (+/- 671)
```
after:
```
         test char::methods::bench_to_ascii_lowercase                    ... bench:       9,612 ns/iter (+/- 979)
         test char::methods::bench_to_ascii_uppercase                    ... bench:       8,241 ns/iter (+/- 701)
```

(calling u8::to_ascii_lowercase and letting that flip the 5th bit is also an option, but it's more instructions. I'm thinking for things around ascii and char we want to be as efficient as possible.)
2021-02-23 02:51:47 +01:00
..
alloc Rollup merge of #81767 - exrook:layout-error-stability, r=Mark-Simulacrum 2021-02-05 12:26:07 +01:00
array Add internal collect_into_array[_unchecked] to remove duplicate code 2021-02-15 17:52:33 +01:00
char Rollup merge of #81837 - gilescope:to_ascii_speedups, r=dtolnay 2021-02-23 02:51:47 +01:00
convert Rollup merge of #80279 - Yaulendil:str-as-mut, r=m-ou-se 2021-01-31 01:47:23 +01:00
fmt Stabilize Arguments::as_str 2021-02-14 17:48:51 -05:00
future Use more std:: instead of core:: in docs for consistency, add more intra doc links 2020-12-02 00:41:53 +01:00
hash Use new pointer metadata API inside libcore instead of manual transmutes 2021-02-15 14:27:34 +01:00
iter Auto merge of #81732 - m-ou-se:inherit-overflow-checks, r=Mark-Simulacrum 2021-02-22 04:07:05 +00:00
macros Auto merge of #79100 - a1phyr:better_assert_eq, r=m-ou-se 2021-02-21 05:41:09 +00:00
mem Rollup merge of #81580 - rodrimati1992:patch-2, r=dtolnay 2021-02-06 00:14:09 +01:00
num Rollup merge of #81837 - gilescope:to_ascii_speedups, r=dtolnay 2021-02-23 02:51:47 +01:00
ops Rollup merge of #81154 - dylni:improve-design-of-assert-len, r=KodrAus 2021-02-23 02:51:43 +01:00
prelude expand/resolve: Turn #[derive] into a regular macro attribute 2021-02-07 20:08:45 +03:00
ptr Use local path for already-imported function 2021-02-15 14:27:52 +01:00
slice Rollup merge of #81154 - dylni:improve-design-of-assert-len, r=KodrAus 2021-02-23 02:51:43 +01:00
str Same instructions, but simpler. 2021-01-26 21:57:50 +00:00
stream Remove Stream::next 2021-01-23 16:54:56 +01:00
sync Rollup merge of #80966 - KodrAus:deprecate/spin_loop_hint, r=m-ou-se 2021-01-14 18:00:14 +00:00
task stabilize the poll_map feature 2021-01-13 14:51:27 +10:00
unicode Slightly more explicit 2021-02-12 13:42:42 +00:00
any.rs Apply suggestions from code review 2020-12-09 23:13:24 +00:00
ascii.rs Fixed some intra-docs links in library/core 2020-09-18 07:49:29 +08:00
bool.rs Stabilise then 2020-11-22 13:45:14 +00:00
borrow.rs Remove many unnecessary manual link resolves from library 2020-12-31 11:54:32 -08:00
cell.rs improve UnsafeCell docs 2021-02-21 17:24:19 +01:00
clone.rs Improve readability 2020-09-01 19:56:32 +02:00
cmp.rs Remove requirement that forces symmetric and transitive PartialEq impls to exist 2021-01-19 14:26:09 -08:00
default.rs Bump rustfmt version 2021-02-02 09:09:52 -05:00
ffi.rs Properly define va_arg and va_list for aarch64-apple-darwin 2020-10-25 21:37:01 -04:00
hint.rs Fixed documentation error 2021-01-03 19:54:54 +02:00
internal_macros.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
intrinsics.rs [Minor] Update discriminant_value docs 2021-02-16 08:16:31 -05:00
lazy.rs Capitalize safety comments 2020-09-08 22:26:44 -04:00
lib.rs Fix intra-doc link to raw pointer method 2021-02-15 14:27:50 +01:00
marker.rs Auto merge of #77893 - petertodd:2020-impl-default-for-phantompinned, r=dtolnay 2020-11-23 07:00:30 +00:00
option.rs Add tracking issue 2021-01-25 14:58:09 +01:00
panic.rs Implement new panic!() behaviour for Rust 2021. 2021-01-25 13:48:11 +01:00
panicking.rs Hide internals items in documentation 2021-02-14 23:39:43 +01:00
pin.rs Remove many unnecessary manual link resolves from library 2020-12-31 11:54:32 -08:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
raw.rs Use intra-doc-links in core::{raw, ffi, pin} 2020-08-22 22:25:27 +02:00
result.rs Add link to tracking issue #82223 2021-02-17 09:04:03 -08:00
time.rs Replace magic numbers with existing constants 2020-12-11 05:27:52 +00:00
tuple.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
unit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00