3 ms·
Never underestimate sorting. Finding something in a sorted list is much faster then going through all items every time. For example when pairing socks, first s
by z3t4 6y ago
Never underestimate sorting. Finding something in a sorted list is much faster then going through all items every time.
For example when pairing socks, first sort them by color.
Or when doing hit-box-detection in xyz, first sort by one of the axis.