cm0002@lemmy.world to Programmer Humor@programming.dev · 4 months agotimeoutSortlemmy.mlexternal-linkmessage-square36linkfedilinkarrow-up1482arrow-down14cross-posted to: programmerhumor@lemmy.ml
arrow-up1478arrow-down1external-linktimeoutSortlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 4 months agomessage-square36linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareDyskolos@lemmy.ziplinkfedilinkarrow-up2·4 months agoIn a situation where performance isn’t required but absolute zero overhead is paramount, this is a perfect sort. Depends on the data itself though. Lots of small numbers maybe multiply each by 10 or 20, lots of big numbers…well…bad luck.
In a situation where performance isn’t required but absolute zero overhead is paramount, this is a perfect sort. Depends on the data itself though. Lots of small numbers maybe multiply each by 10 or 20, lots of big numbers…well…bad luck.