Message-ID: <01046CE9-0875-41B9-B289-A5535269F413@uni-tuebingen.de>
Date: 2024-02-17T11:20:56Z
From: Stefan Mayer
Subject: [R-pkg-devel] Unusually long execution time for R.utils::gzip on r-devel-windows
In-Reply-To: <CAFDcVCQtReBuEuQ0OdXBXnUmNRUMBHP=JiP55RwYOKqOgszXEg@mail.gmail.com>
> On 17. Feb 2024, at 09:16, Henrik Bengtsson <henrik.bengtsson at gmail.com> wrote:
>
> I can confirm that this has to fixed in R.utils. This gist is that
> R.utils does lots of validation of read/write permissions, and deep
> down it rely on system("dir") as a fallback method. If this is down
> toward dirname(tempdir()), then it'll find a lot of files, e.g.
>
> [?]
>
> So, yeah, wow! I'll look into fixing this, probably by removing this
> fallback approach, which is very rarely needed; it was added way back
> when Sys.readlink() didn't cover all cases.
Thanks for looking into this, Henrik! Feel free to let me know if I can help with anything.
- Stefan