[Nix-dev] making nix-collect-garbage faster?
Michael Raskin
7c6f434c at mail.ru
Sat May 15 19:55:35 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/15/2010 08:28 PM, Marc Weber wrote:
> Would it make nix-collect-garbage faster when store paths were not
> deleted but moved to a garbage directory instead?
> Eg mv /nix/stoer/xxxxxxxxxxxxxxx-foo /nix/store/garbage
Given that it is the same directory tree, it could save us tons of time.
mv (inside FS) is one atomic operation. "rm -rf" takes forever
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJL7uAWAAoJEE6tnN0aWvw3VrUIAJ7YZ83Dk3XE9OKmBbDLaWuq
1VwPjsSQ30WrRXHSXbKOZddAfHHjZuE5/r/bWnLIfssuU7kID17MUbnc0SKCZVNQ
YplHyWeHLDUTYOLVOUK6thIDOc39sq+4ktK/YLwzvF9q92ecsKHG/dxXuvPr1EH5
rMgDVAvtUkYxnGIclGxCOEtVcnchBsSHyhLfp+FO8kRGq4jlPEabnGdBPRNKd6V4
vYhyTnlRf1RAwJCmGj3exn4AjKQ5B7a5GV/CBHheppEJOkhxuuO7uzociyCixrqJ
UMthSgPKo4m+GjgO8D/Thp1ovOAek/X6il20GGjDbQsdiLEZfsobWZOaKqYYr4k=
=TXcX
-----END PGP SIGNATURE-----
More information about the nix-dev
mailing list