Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: speed up deletings #26

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

perf: speed up deletings #26

wants to merge 2 commits into from

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

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.

4 participants