Skip to main content

algorithms.pdqsort

Standard library Module View source
variable INSERTION_SORT_THRESHOLD
INSERTION_SORT_THRESHOLD = 24
variable NINTHER_THRESHOLD
NINTHER_THRESHOLD = 128
variable PARTIAL_INSERTION_SORT_LIMIT
PARTIAL_INSERTION_SORT_LIMIT = 8
function pdq_sort_array
pdq_sort_array[T: type, S: type](collection: Ptr[T], size: int, keyf: CallableTrait[([T], S)])
function pdq_sort_inplace
pdq_sort_inplace[T: type, S: type](collection: List[T], keyf: CallableTrait[([T], S)])
function pdq_sort
pdq_sort[T: type, S: type](collection: List[T], keyf: CallableTrait[([T], S)]) -> List[T]