But why? Why does it matter if you are in the same dir or not when you glob?
On Mon, Dec 4, 2017, 20:34 Gabriel Forster
wrote:
> Ding ding ding! We have a winner! Thank you so much. That made a huge
> difference. It is now running ~20 seconds.
>
> The key is being in the same directory.
>
>
> O
Ding ding ding! We have a winner! Thank you so much. That made a huge
difference. It is now running ~20 seconds.
The key is being in the same directory.
On Monday, December 4, 2017 at 2:17:03 PM UTC-5, Patrick Smith wrote:
>
> Does it make a difference if you first change directory to
> /var/s
Does it make a difference if you first change directory to
/var/spool/directory, then glob * and unlink the resulting filenames,
without prepending the directory?
On Mon, Dec 4, 2017 at 11:05 AM, Gabriel Forster
wrote:
> Readdirnames wasn't much better. Now using globbing and syscall.Unlink
> wh
On Tue, Dec 5, 2017, 7:13 AM Gabriel Forster
wrote:
> As far as I understand, that perl line is by far the fastest way to delete
> files in linux. We're talking over 500k files on hdd.
>
It may be the 500k stats that are killing you. From the looks of your code,
the stat seems unnecessary as yo