Skip to content

module algorithms.timsort

Source: stdlib/algorithms/timsort.codon


BLOCK_SIZE = 64


CACHELINE_SIZE = 64


MIN_GALLOP = 7


tim_sort_array(collection: Array[T], size: int, keyf: CallableTrait[T, S], T: type, S: type)


tim_sort_inplace(collection: List[T], keyf: CallableTrait[T, S], T: type, S: type)


tim_sort(collection: List[T], keyf: CallableTrait[T, S], T: type, S: type)