Back to

Package psort

Latest Go to latest
Published: Jun 24, 2020 | License: Apache-2.0 | Module:


Package psort includes functions for parallel sorting.


Package Files

func Slice

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier