yarn cache clean is really slow

Does this happen to anyone? yarn cache clean is unbelievely slow. In other CI systems it takes about 4-5 seconds.

yarn install v1.16.0
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
[5/5] Building fresh packages...
$ scripts/link-assets
Done in 68.86s.
yarn cache v1.16.0
success Cleared cache.
Done in 123.83s.

This appears to be on Windows based on the message from fsevents.  We have seen cases where operations that perform I/O on lots of small files can be very slow in the windows virtual environments.  We are continually working to improve the performance there.

The fsevents message says linux not Windows.

1 Like

I have similar observations, if that’s any help. Slow to restore cache - it takes 43 seconds for 268 MB. I think it might even be slower than simply fetching the dependencies every time…
I’m using cache@v2 on Ubuntu-latest.
path: /home/runner/.cache/yarn/v6