sonic icon indicating copy to clipboard operation
sonic copied to clipboard

optimize: use SIMD to accelerate json.Compact

Open liuq19 opened this issue 1 year ago • 3 comments

Compat: now is use the encoding/json API, it is slow and we can use SIMD in native C to accelerate it.

liuq19 avatar May 11 '23 12:05 liuq19

Hi @liuq19, interested in working on this issue. I'm assuming this is relevant to what you want to achieve here. If this is the correct direction, I will start working on it.

ngqinzhe avatar Jan 01 '24 03:01 ngqinzhe

Yeah. I think it is a good solution, welcome to try it. And we could use shuffle to compute the space mask. https://github.com/bytedance/sonic/blob/main/native/fastbytes.c#L36

liuq19 avatar Jan 01 '24 13:01 liuq19

hello, is there any update?

liuq19 avatar Jun 19 '24 15:06 liuq19