Skip to content

Implement the radixsort builtin #200

Description

@steve-s

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions