aboutsummaryrefslogtreecommitdiff
path: root/etc/guix-daemon.service.in
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-11-30 14:58:38 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-11-30 17:28:10 +0100
commit6c8c8c6b759cd64382c7ede2aff8580bcbfb9f95 (patch)
tree417ad9340f657c7a4b3e30e7a72bf522f74df9a4 /etc/guix-daemon.service.in
parentcdc129dc53b1c04e9a6577f7d2b9641a0a03c32f (diff)
downloadguix-6c8c8c6b759cd64382c7ede2aff8580bcbfb9f95.tar.gz
guix-6c8c8c6b759cd64382c7ede2aff8580bcbfb9f95.zip
gnu: Add r-broom.
* gnu/packages/cran.scm (r-broom): New variable.
Diffstat (limited to 'etc/guix-daemon.service.in')
0 files changed, 0 insertions, 0 deletions
ix/commit/nix?id=24224530d1f4a70808d003ba8dce849b77625b79'>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'. Ludovic Courtès 2021-11-16daemon: Do not deduplicate files smaller than 8 KiB....Files smaller than 8 KiB typically represent ~70% of the entries in /gnu/store/.links but only contribute to ~4% of the space savings afforded by deduplication. Not considering these files for deduplication speeds up file insertion in the store and, more importantly, leaves 'removeUnusedLinks' with fewer entries to traverse, thereby speeding it up proportionally. Partly fixes <https://issues.guix.gnu.org/24937>. * config-daemon.ac: Remove symlink hard link check and CAN_LINK_SYMLINK definition. * guix/store/deduplication.scm (%deduplication-minimum-size): New variable. (deduplicate)[loop]: Do not recurse when FILE's size is below %DEDUPLICATION-MINIMUM-SIZE. (dump-port): New procedure. (dump-file/deduplicate)[hash]: Turn into... [dump-and-compute-hash]: ... this thunk. Call 'deduplicate' only when SIZE is greater than %DEDUPLICATION-MINIMUM-SIZE; otherwise call 'dump-port'. * nix/libstore/gc.cc (LocalStore::removeUnusedLinks): Drop files where st.st_size < deduplicationMinSize. * nix/libstore/local-store.hh (deduplicationMinSize): New declaration. * nix/libstore/optimise-store.cc (deduplicationMinSize): New variable. (LocalStore::optimisePath_): Return when PATH is a symlink or smaller than 'deduplicationMinSize'. * tests/derivations.scm ("identical files are deduplicated"): Produce files bigger than %DEDUPLICATION-MINIMUM-SIZE. * tests/nar.scm ("restore-file-set with directories (signed, valid)"): Likewise. * tests/store-deduplication.scm ("deduplicate, below %deduplication-minimum-size"): New test. ("deduplicate", "deduplicate, ENOSPC"): Produce files bigger than %DEDUPLICATION-MINIMUM-SIZE. * tests/store.scm ("substitute, deduplication"): Likewise. Ludovic Courtès