// -*- C++ -*- // Boost general library 'format' --------------------------- // See http://www.boost.org for updates, documentation, and revision history. // (C) Samuel Krempp 2001 // krempp@crans.ens-cachan.fr // Permission to copy, use, modify, sell and // distribute this software is granted provided this copyright notice appears // in all copies. This software is provided "as is" without express or implied // warranty, and with no claim as to its suitability for any purpose. // ideas taken from Rüdiger Loos's format class // and Karl Nelson's ofstream (also took its parsing code as basis for printf parsing) // ------------------------------------------------------------------------------ // macros_default.hpp : configuration for the format library // provides default values for the stl workaround macros // ------------------------------------------------------------------------------ #ifndef BOOST_FORMAT_MACROS_DEFAULT_HPP #define BOOST_FORMAT_MACROS_DEFAULT_HPP // *** This should go to "boost/config/suffix.hpp". #ifndef BOOST_IO_STD # define BOOST_IO_STD std:: #endif // **** Workaround for io streams, stlport and msvc. #ifdef BOOST_IO_NEEDS_USING_DECLARATION namespace boost { using std::char_traits; using std::basic_ostream; using std::basic_ostringstream; namespace io { using std::basic_ostream; namespace detail { using std::basic_ios; using std::basic_ostream; using std::basic_ostringstream; } } } #endif // ------------------------------------------------------------------------------ #endif // BOOST_FORMAT_MACROS_DEFAULT_HPP ests/store-deduplication.scm'>
path: root/tests/store-deduplication.scm
AgeCommit message (Expand)Author
2024-05-25deduplication: Detect holes and create sparse files....This reduces disk usage of sparse files that are substituted such as Guile object files (ELF files). As of Guile 3.0.9, .go files are sparse due to ELF sections being aligned on 64 KiB boundaries. This reduces disk usage reported by “du -sh†by 9% for the ‘guix’ package, by 23% for ‘guile’, and by 35% for ‘guile-git’. * guix/store/deduplication.scm (hole-size, find-holes): New procedures. (tee)[seekable?]: New variable. [read!]: Add case when SEEKABLE? is true. * tests/store-deduplication.scm (cartesian-product): New procedure. ("copy-file/deduplicate, sparse files (holes: ~a/~a/~a)"): New test set. Change-Id: Iad2ab7830dcb1220e2026f4a127a6c718afa8964 Ludovic Courtès