Skip to content

Switch to radix sort? #3

@dgryski

Description

@dgryski

The sorting in the finalize step is very expensive. We can probably do better than quicksort since we know we're sorting integers. Especially if we want to update the tables and call Finalize() again, it would be nice not to hit O(n^2) behaviour (although Go drops to mergesort if the recursion level gets too high, we're still in O(n log n) territory).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions