guix/nix/libutil
Ludovic Courtès 24224530d1
daemon: Micro-optimize 'deletePath'.
'remove' calls 'unlink' first and falls back to 'rmdir' upon EISDIR.
This change gets rid of the 'unlink' call for every directory being
removed.

* nix/libutil/util.cc (_deletePath): Call 'unlink' or 'rmdir' depending
on 'st.st_mode', rather than call 'remove'.
2021-11-19 23:04:19 +01:00
..
affinity.cc
affinity.hh
archive.cc daemon: Use unbranded phrases in comments and messages. 2018-12-16 16:28:07 +01:00
archive.hh daemon: Remove "case hack" for nars. 2018-10-02 23:08:30 +02:00
hash.cc daemon: Recognize SHA3 and BLAKE2s. 2020-06-27 23:42:20 +02:00
hash.hh daemon: Recognize SHA3 and BLAKE2s. 2020-06-27 23:42:20 +02:00
serialise.cc Merge branch 'nix'. 2015-05-19 16:09:58 +02:00
serialise.hh Merge branch 'nix'. 2015-05-19 16:09:58 +02:00
types.hh Merge branch 'nix'. 2015-05-19 16:09:58 +02:00
util.cc daemon: Micro-optimize 'deletePath'. 2021-11-19 23:04:19 +01:00
util.hh daemon: 'Agent' constructor takes a list of environment variables. 2020-12-08 22:30:07 +01:00