Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize: use SIMD to accelerate json.Compact #414

Open
liuq19 opened this issue May 11, 2023 · 2 comments
Open

optimize: use SIMD to accelerate json.Compact #414

liuq19 opened this issue May 11, 2023 · 2 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@liuq19
Copy link
Collaborator

liuq19 commented May 11, 2023

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

@liuq19 liuq19 added the good first issue Good for newcomers label May 11, 2023
@liuq19 liuq19 changed the title optimize: use SIMD to accelerate the compat functions optimize: use SIMD to accelerate json.Compact May 23, 2023
@ngqinzhe
Copy link

ngqinzhe commented Jan 1, 2024

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.

@liuq19
Copy link
Collaborator Author

liuq19 commented Jan 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants