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.