diff options
| author | Karl Seguin <karlseguin@users.noreply.github.com> | 2023-10-07 11:49:21 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-06 23:49:21 -0400 |
| commit | d68f39b5412e0aeb59d71c9f676221212261dc8c (patch) | |
| tree | 7d92d2bf3634ffdc0ac3e3a461d38b2a18bb0b2b /src/Compilation.zig | |
| parent | 5a4a5875dc49dd4e027b17b96dd1348822806e58 (diff) | |
| download | zig-d68f39b5412e0aeb59d71c9f676221212261dc8c.tar.gz zig-d68f39b5412e0aeb59d71c9f676221212261dc8c.zip | |
std.unicode.utf8ValidateSlice: optimize implementation (#17329)
Originally inspired by Go's `utf8.Valid` function. Includes some test cases from Go's test suite.
Further optimized to be faster in all tested cases (short/long ascii/UTF8), in all release modes.
Takes advantage of SIMD for the ASCII fast path.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
