I'm pleased to announce the first release of decundec <https://pkg.go.dev/github.com/spakin/decundec>, a small package that speeds up the slices <https://pkg.go.dev/slices> package's sort functions in cases where the user-provided comparison function applies a costly transformation to the values being compared.
decundec employs the decorate-sort-undecorate <https://en.wikipedia.org/wiki/Schwartzian_transform> idiom, computing the costly transformation only once per element, sorting the transformed data, and stripping off the transformed values when finished. See the decundec package page <https://pkg.go.dev/github.com/spakin/decundec#section-readme> for more information, documentation, and examples. — Scott -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/d2fb0eec-8f0c-4397-91dd-9b46adf61bd2n%40googlegroups.com.