On Mon, Jul 20, 2026 at 03:10:28PM -0400, Kurt Hackenberg wrote:
Programmers are notoriously bad at guessing where software spends its time. The standard advice is to *measure* speed if you're concerned about it.

Applying that advice, I guess anyone tempted to remove this speed hack should measure speed first, with and without the hack, in at least all the cases above. And remember that disk drives and filesystems both have cache. A lot of work...

Yup.  Personally, I would love to completely remove the sort.  It would
make the function a lot cleaner.

But it would be a lot of work to measure. I'm personally on a SSD with btrfs, so the sort is just slowing me down I'm sure :-D

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to