Skip to content

Commit cfefbd7

Browse files
committed
feat: implement new faster sort algorithm for Go 1.18
This implements the pdqsort algorithm for Go 1.18 and later. The new algorithm is ~10x faster than `sort.Sort` and was added to the `slices` package in Go 1.20. The algorithm is backported from the stdlib and is used in this package to provide a faster median cut algorithm.
1 parent 0a3861b commit cfefbd7

5 files changed

Lines changed: 545 additions & 8 deletions

File tree

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
module "github.com/soniakeys/quant"
1+
module github.com/soniakeys/quant
2+
3+
go 1.18

0 commit comments

Comments
 (0)