Coder Social home page Coder Social logo

zhangyunhao116 / pdqsort Goto Github PK

View Code? Open in Web Editor NEW
108.0 3.0 7.0 47 KB

Pattern-defeating quicksort in Go with generics(need Go1.18). About 2x ~ 60x faster than the built-in sort package.

License: MIT License

Go 100.00%
sorting-algorithms go golang sorting sort pdqsort

pdqsort's Issues

support struct sort

Hello, TiDB has a plan to use pdqsort to improve sort performance. but we find that Golang will support pdqsort in the Go1.19. So we decide to use this library to achieve our goals. however, we find this library only sorts this base type and we need to sort the slice of custom type. Have you a plan to improve it?

Export the Ordered interface

I want to use your sorting in my functions(like Unique) but since ordered is not exported I cannot use it as constraint.

How to replace?

Hi, so obviously this was merged into Go std library. But how do I replace pdqsort.Slice now? Go requires less function as argument and I don't see any new functions added to std. So how do i achieve the same functionality?

Missing LICENSE

Hi,

Thank You very much for this work!

Will You be so kind to add a LICENCE file to the repository? I have made a zig version of pdqsort based on this repo and I would like to give proper credit.

Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.