Description
Description
The current json_encode
implementation [1] iterates on every string character.
I belive there is a potential to utilize SIMD to copy multiple characters to the output string as long as they are not to-be-escaped.
Benchmark: https://3v4l.org/XeJTn/rfc#vgit.master
This can improve performace on applications that do a lot of JSON encoding.
[1] https://github.com/php/php-src/blob/php-8.4.3/ext/json/json_encoder.c#L411