rust/library/alloc/tests
Jörn Horstmann e393f56d37 Improve autovectorization of to_lowercase / to_uppercase functions
Refactor the code in the `convert_while_ascii` helper function to make
it more suitable for auto-vectorization and also process the full ascii
prefix of the string. The generic case conversion logic will only be
invoked starting from the first non-ascii character.

The runtime on microbenchmarks with ascii-only inputs improves between
1.5x for short and 4x for long inputs on x86_64 and aarch64.

The new implementation also encapsulates all unsafe inside the
`convert_while_ascii` function.

Fixes #123712
2024-09-23 11:31:29 +02:00
..
arc.rs PinCoerceUnsized trait into core 2024-07-31 17:10:55 +08:00
autotraits.rs
borrow.rs
boxed.rs Removes dead code from the compiler 2024-08-25 13:41:39 +08:00
btree_set_hash.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
c_str.rs
const_fns.rs
cow_str.rs
fmt.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
heap.rs
lib.rs Avoid re-validating UTF-8 in FromUtf8Error::into_utf8_lossy 2024-09-20 20:56:07 -04:00
linked_list.rs
rc.rs PinCoerceUnsized trait into core 2024-07-31 17:10:55 +08:00
slice.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
str.rs Improve autovectorization of to_lowercase / to_uppercase functions 2024-09-23 11:31:29 +02:00
string.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
task.rs ignore some vtable/fn ptr equality tests in Miri, their result is not fully predictable 2024-08-12 10:39:11 +02:00
thin_box.rs
vec_deque_alloc_error.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
vec_deque.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
vec.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00