Hmm. I appreciate the cute name for the project but I tested this on my machine (a Mac) and the results were not very impressive. I sacrificed a few of my SSD cycles to test how this is on deleting Xcode (for those unaware, it's a 11 GB mess of several hundred thousand files of varying sizes). Here are the results: $ time rm -rf Xcode.app real 0m39.850s user 0m0.429s sys 0m29.153s $ time rmz Xcode.app real 0m36.476s…
The fastest rm command and one of the fastest cp commands
11–20 of 83 posts
Re: The fastest rm command and one of the fastest cp commands
#12This could be useful for e.g. bazel, where I’ve regularly seen deleting the bazel caches take on the order of 10 minutes because of absurdly large and repeated directory trees (caused by things like runfile trees containing the python interpreter).
Re: The fastest rm command and one of the fastest cp commands
#13If you need a large sub tree gone, mv dir .old-dir && rm -r .old-dir & works pretty well. Faster even than an optimized parallel unlinker.
Re: The fastest rm command and one of the fastest cp commands
#14Hmm. I appreciate the cute name for the project but I tested this on my machine (a Mac) and the results were not very impressive. I sacrificed a few of my SSD cycles to test how this is on deleting Xcode (for those unaware, it's a 11 GB mess of several hundred thousand files of varying sizes). Here are the results: $ time rm -rf Xcode.app real 0m39.850s user 0m0.429s sys 0m29.153s $ time rmz Xcode.app real 0m36.476s…
Slight tangent: why do you need to delete Xcode so often? (I don't really develop on Mac, mostly on Linux.)
Re: The fastest rm command and one of the fastest cp commands
#15Hmm. I appreciate the cute name for the project but I tested this on my machine (a Mac) and the results were not very impressive. I sacrificed a few of my SSD cycles to test how this is on deleting Xcode (for those unaware, it's a 11 GB mess of several hundred thousand files of varying sizes). Here are the results: $ time rm -rf Xcode.app real 0m39.850s user 0m0.429s sys 0m29.153s $ time rmz Xcode.app real 0m36.476s…
Slight tangent: why do you need to delete Xcode so often? (I don't really develop on Mac, mostly on Linux.)
$ du -Ash Xcode.app
22G Xcode.app
Re: The fastest rm command and one of the fastest cp commands
#16Re: The fastest rm command and one of the fastest cp commands
#17I cant wait to see the future where we have uring (io_uring) based tools that all work async, getting hopefully embarassingly parallel. Heck yes copying & deleting 2x as fast. Actually I'm on btrfs so reflink copy is like instant I think? I should test that better.
That, or your algorithm could be optimal for concurrency already - and you would see an immediate performance improvement.
Re: The fastest rm command and one of the fastest cp commands
#18i'm clearly missing something here
parallel execution helps when operations are cpu bound
file operations are (almost always) io bound
and totally unclear how directories represent an "interference" boundary
bizarre
Re: The fastest rm command and one of the fastest cp commands
#19If you need a large sub tree gone, mv dir .old-dir && rm -r .old-dir & works pretty well. Faster even than an optimized parallel unlinker.
Re: The fastest rm command and one of the fastest cp commands
#20> The key insight is that file operations in separate directories don’t (for the most part) interfere with each other, enabling parallel execution. i'm clearly missing something here parallel execution helps when operations are cpu bound file operations are (almost always) io bound and totally unclear how directories represent an "interference" boundary bizarre