1
0
mirror of https://github.com/php/php-src.git synced 2026-04-06 07:32:54 +02:00
Files
archived-php-src/ext/mbstring/tests
Alex Dowad d04854b38c Add fast mb_strcut implementation for UTF-16
Similar to the fast, specialized mb_strcut implementation for UTF-8
in 1f0cf133db, this new implementation of mb_strcut for UTF-16 strings
just examines a few bytes before each cut point.

Even for short strings, the new implementation is around 2x faster.
For strings around 10,000 bytes in length, it comes out about 100-500x
faster in my microbenchmarks.

The new implementation behaves identically to the old one on valid
UTF-16 strings; a fuzzer was used to help verify this.
2023-10-28 19:09:08 +02:00
..
2023-10-04 09:10:25 +02:00
2021-06-11 14:00:43 +02:00
2021-06-11 14:00:43 +02:00
2021-06-11 14:00:43 +02:00
2021-06-11 14:00:43 +02:00
2021-06-11 14:00:43 +02:00
2021-06-11 14:00:43 +02:00
2021-06-11 14:00:43 +02:00
2021-06-11 14:00:43 +02:00
2021-06-11 14:00:43 +02:00
2021-06-11 14:00:43 +02:00
2021-08-11 14:03:18 +02:00
2020-02-03 22:52:20 +01:00
2023-07-01 22:03:08 +02:00
2022-05-06 15:41:10 +02:00
2023-05-30 14:02:16 -07:00
2023-01-06 14:34:10 +02:00