Crates.io | rmx |
lib.rs | rmx |
version | 0.1.6 |
source | src |
created_at | 2022-10-02 18:54:02.234379 |
updated_at | 2022-10-20 04:14:19.559274 |
description | Faster GNU 'rm' drop in replacement with extra features |
homepage | |
repository | https://github.com/demfabris/rmx |
max_upload_size | |
id | 678516 |
size | 1,187,562 |
Multiplatform drop in replacement for GNU rm
with extra features
This project is a close port of GNU rm
. The idea is extending the functionality around rm
API and bring some niceties with improved performance, specially for large files and deeply nested directories.
rm
api-t
)--shred
)Benches are defined here
To profile how rmx
performs on your system:
cargo bench
remove | rmx | rm | rmt | rmd |
---|---|---|---|---|
files | 4.9297ms | 19.991ms | 10.003ms | 9.2056ms |
recursively nested folders | 4.9784ms | 20.122ms | 10.135ms | 9.3328ms |
multiple deeply nested folders | 4.8809ms | 19.504ms | 10.308ms | 9.2406ms |
multiple deeply nested folders (rip mode) | 4.2580ms | - | - | - |
numbers obtained on a Alienware M15 R6, at commit: 34e1e5a2
rmx
consistently scores better performance while offering the same API as GNU rm
rmx --rip node_modules
rmx file1 file2 -t
rmx --follow-links link
rmx --shred file
rm
usagermx --one-file-system -i *.txt
handles more glob matching args, rm
panics at ~10k+ matches`rmx --preserve-root=/home --interactive=once /home/*/*
rmx --verbose -rf --no-preserve-root /
From crates.io
cargo install rmx
AUR: yay rmx-bin
Find all release targets here
Latest linux-musl binary
Put in your favorite shell rc file:
alias rm='rmx'
rm
and the underlying system calls are not the same.rmx
improves the computation load. I/O might still be your biggest bottleneck.