Skip to content

Radix Sort Performance Issue (100x slower than Base) #50

@LilithHafner

Description

@LilithHafner

I think this may have come up before, but I don't see an open issue, and I stumbled upon this bug again because it was the bottleneck when profiling some hypergraph generation codes that used StatseBase's countmap which uses SortingAlgorithms's RadixSort:

using SortingAlgorithms
x = [rand(1:10, 10) for i in 1:30000];
@elapsed sort.(x) # 0.015s
@elapsed sort.(x; alg=RadixSort) # 1.4s

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