psort

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package psort includes functions for parallel sorting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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