4 ms·
100x faster: Don't sort.
by mc4ndr3 4y ago
100x faster: Don't sort.
- janwas 4y agoFair :) Sorting is useful in DB joins/group-by, though. (Author here, happy to discuss.)
- hypertele-Xii 4y agoAt 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.
- bradknowles 4y agoNo sorting is faster than no sorting.