Hacker News new | ask | show | jobs
by mc4ndr3 1479 days ago
100x faster: Don't sort.
3 comments

Fair :) Sorting is useful in DB joins/group-by, though.

(Author here, happy to discuss.)

At first glance seems like a snarky dismissal, but this is actually valid, actionable advice. If you can arrange your data flow in such a way that sorting is unnecessary, you've avoided an expensive optimization problem altogether.
No sorting is faster than no sorting.