zuint

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package zuint implements radix sort for []uint.

Index

Constants

View Source
const (
	// MinSize is the minimum size of a slice that will be radix sorted by Sort.
	MinSize = 256
)

Variables

This section is empty.

Functions

func Sort

func Sort(x []uint)

Sort sorts x using a Radix sort (Small slices are sorted with sort.Sort() instead).

func SortBYOB

func SortBYOB(x, buffer []uint)

SortBYOB sorts x using a Radix sort, using supplied buffer space. Panics if len(x) does not equal len(buffer). Uses radix sort even on small slices.

func SortCopy

func SortCopy(x []uint) []uint

SortCopy is similar to Sort, but returns a sorted copy of x, leaving x unmodified.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL