Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re...
by Gibbon1 on Monday August 21, 2023 @01:50PM
(#37212948)
I just remember something from basic math. Exponential curve < linear for small values.
That said a lot of time I have small arrays of objects. Instead of keeping them sorted I just grind through them to find the next largest value. That tends to be hard to get wrong.
That said a lot of time I have small arrays of objects. Instead of keeping them sorted I just grind through them to find the next largest value. That tends to be hard to get wrong.