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

Add Go SAIS suffix sorter #12

Merged
merged 41 commits into from
Jan 9, 2022
Merged

Add Go SAIS suffix sorter #12

merged 41 commits into from
Jan 9, 2022

Conversation

jzebedee
Copy link
Owner

@jzebedee jzebedee commented Jan 8, 2022

No description provided.

cx calculations were casting c1 to uint, when it should be byte (so additions overflow) in length_8_32
Verified jitted generic CQ is equivalent to length_8_32 and length_32 output (the ones without typeof branches)
Move trivial cases to Sort and out of sais_32

Don't allocate tmp cleared, since we clear freq/bucket explicitly
Also add a sized random buffer test set. This isn't a good corprus for real world performance, but it helps to identify constant runtime costs that determine when we should upgrade the algorithm as the size of input increases.
@jzebedee
Copy link
Owner Author

jzebedee commented Jan 9, 2022

This also bumps DQ.SS.SAIS version to v2.1.0

@jzebedee jzebedee merged commit 6f2a6b3 into master Jan 9, 2022
@jzebedee jzebedee deleted the zero_alloc_sais branch January 9, 2022 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant