From: ori@eigenstate.org Subject: Re: got rm trim dirs To: tracey@traceyemery.net, stsp@stsp.name Cc: gameoftrees@openbsd.org Date: Wed, 4 Mar 2020 15:55:18 -0800 > Just one more before we revert to something like the first patch. Using > scandir, we can avoid the race as we iterate the directories. But, > perhaps this operation is too expensive on large dirs, since there would > be a lot of malloc and freeing for each file. I suspect mallocs and frees will be lost in the noise of actually accessing the file system.