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
..
2024-07-31 17:10:55 +08:00
2024-01-11 15:04:48 +03:00
2023-12-10 10:56:22 +08:00
2024-08-25 13:41:39 +08:00
2024-07-29 08:26:52 +10:00
2023-04-16 11:38:52 +00:00
2024-07-31 17:10:55 +08:00