-
Notifications
You must be signed in to change notification settings - Fork 318
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 C implement quick sort #423
Comments
Hey would you assign me this task? I'm just beginning to open source and I'd like to contribute. |
Sure, Welcome~ |
Currently, Sonic has implemented a fast string sorting algorithm in Golang, which can be ported to C language for further optimization of sorting time. The specific sorting algorithm can refer to the existing Golang implementation in Sonic, which has implemented the 3-way Radix Quicksort. The code can be found at https://github.com/bytedance/sonic/blob/main/encoder/sort.go#L21. You can implement quick-sort as follows:
|
We want use C implement quick sort for higer performance.
The origin go implement is https://github.com/bytedance/sonic/blob/main/encoder/sort.go#L21
The text was updated successfully, but these errors were encountered: