HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by hdjfjkremmr | Hacker News Reader
Parent
Full thread
hdjfjkremmr
·
it's sorting 50 times a list going from 50 to 0 items.
View on HN
blharr
·
49 of those times, it's hitting the best case of sorting an already sorted list, so I still can't imagine that huge of a performance penalty
hyperhello
·
There are sort algorithms that don’t do any work except scanning if the list is unsorted, but there are more efficient ones to use if they are.
Reply on news.ycombinator.com