Re:“Clean” Code, Horrible Performance
by dagw on Wednesday March 01, 2023 @04:42AM
(#34980474)
Perhaps not sort so much, but certainly with search I've seen people roll their own inefficient search functions many times.
[ Parent
| on HN ]
Re:“Clean” Code, Horrible Performance
by joaonmatos on Sunday March 05, 2023 @05:11AM
(#35028300)
It is the exact same situation, though. Most people can just chain a sort and a binary search to do it, and both are included in most languages.
Or just put it into a tree map, if your language has it.