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

Implement the radixsort builtin #200

Open
steve-s opened this issue May 16, 2022 · 0 comments
Open

Implement the radixsort builtin #200

steve-s opened this issue May 16, 2022 · 0 comments

Comments

@steve-s
Copy link
Member

steve-s commented May 16, 2022

The current implementation of the radixsort builtin delegates to shellsort (order builtin), but it should instead implement the same algorithm as the reference implementation.

The implementation can be tested on the following benchmark:

x <- (1:3000000/3000000) + 1
print("shell")
for (i in seq(200))
        print(system.time(order(x, method="shell")))
print("auto")
for (i in seq(200))
        print(system.time(order(x)))

the first call order(x, method="shell") uses shell sort, the other order(x) should call into the radixsort builtin. GNU-R is faster when using radixsort and FastR should be too.

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

No branches or pull requests

1 participant