base: Index | Files

package psort

import ""

Package psort includes functions for parallel sorting.


Package Files

doc.go mergesort.go

func Slice Uses

func Slice(slice interface{}, less func(i, j int) bool, parallelism int)

Slice sorts the given slice according to the ordering induced by the provided less function. Parallel computation will be attempted, up to the limit imposed by parallelism. This function can be much faster than the standard library's sort.Slice() when sorting large slices on multicore machines.

Package psort imports 4 packages (graph). Updated 2019-11-15. Refresh now. Tools for package owners.