3 ms·
> if you're looking for performance you probably aren't just blindly using the standard library sort anyway That's so interesting- I think I have the opposite
by Xavdidtheshadow 4y ago
> if you're looking for performance you probably aren't just blindly using the standard library sort anyway
That's so interesting- I think I have the opposite response. I figure unless I'm doing a very specific case that doesn't fit well with the stdlib sort (for some specific reason), It's probably good enough. Those language folks usually know their stuff, who am I to try something else?
- nicoburns 4y agoAre you looking at that from a perspective of implementing your own sort if you’re not using the stdlib one? From my perspective I can likely install and try out a drop-in replacement library in about 60 seconds. So if sorting is a bottleneck then why wouldn’t I?
- onionisafruit 4y agoI agree that it is relatively rare for sort to be your bottleneck. What I meant is that in that relatively rare circumstance most people are going to look outside the standard library and try a few different sorts. My comment also had a more dismissive tone than I intended.