top | item 42281629

Kth: High-Performance Selection Algorithms for Go

79 points| tsenart | 1 year ago |github.com

6 comments

order

brodouevencode|1 year ago

Request: version the library so it's a little easier to manage.

tsenart|1 year ago

Author here! Will do eventually.

nnx|1 year ago

This looks interesting but I can't think of an use case. Can you share some examples where it could be useful?

tsenart|1 year ago

Yes! A typical use case is to efficiently implement ORDER BY LIMIT N in SQL databases in a way that doesn’t require sorting the entire column just to get those first N items.