Skip to content

perf: speed up deletings#26

Open
xc2 wants to merge 2 commits intojlumbroso:mainfrom
xc2:perf
Open

perf: speed up deletings#26
xc2 wants to merge 2 commits intojlumbroso:mainfrom
xc2:perf

Conversation

@xc2
Copy link

@xc2 xc2 commented Jul 20, 2024

Reducing the execution time of the workflow to under 1 minute.

  • Use find -delete instead of rm -rf to speed up deleting large amount files.
  • Optimize prerm script of google-cloud-cli
Before After
1m52s 46s
image image

@xc2 xc2 mentioned this pull request Jul 20, 2024
@Jayllyz
Copy link

Jayllyz commented Aug 21, 2024

Could be even faster using :

curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall -y rmz
ln -s ~/.cargo/bin/rmz /usr/local/bin/rmz

and then

sudo rmz -f file

All settings to true, most of the time is from docker.
image

@ffMathy
Copy link

ffMathy commented Aug 22, 2024

@jlumbroso any chance we can get this merged?

@pkordes
Copy link

pkordes commented Aug 28, 2024

@Jayllyz - do you have a branch or repo anywhere to test your suggestion?

@Jayllyz
Copy link

Jayllyz commented Aug 28, 2024

@Jayllyz - do you have a branch or repo anywhere to test your suggestion?

https://github.com/Jayllyz/free-disk-space/tree/perf/use-rmz

@ric-evans
Copy link

ric-evans commented Sep 15, 2025

Nice change, would be great to see this merged @jlumbroso (https://github.com/Jayllyz/free-disk-space/tree/perf/use-rmz)

@hjmjohnson
Copy link

@xc2

FYI: I have forked and incorporated many of the recommended fixes in various forks into a new repo:

git@github.com:BRAINSia/free-disk-space.git

uses: BRAINSia/free-disk-space@v2

@ffMathy
Copy link

ffMathy commented Oct 13, 2025

Can we get this merged? Is this repo dead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants