|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83559 - trunk/tools/regression/src/report
From: steven_at_[hidden]
Date: 2013-03-25 12:28:04
Author: steven_watanabe
Date: 2013-03-25 12:28:03 EDT (Mon, 25 Mar 2013)
New Revision: 83559
URL: http://svn.boost.org/trac/boost/changeset/83559
Log:
Disable compression. It doesn't save much disk space for so many small files (less than 2:1), and we get much better compression for network transfer by letting rsync see the original uncompressed data.
Text files modified:
trunk/tools/regression/src/report/html_writer.hpp | 2 +-
trunk/tools/regression/src/report/zip.hpp | 25 +++++++++++++++++++++++++
2 files changed, 26 insertions(+), 1 deletions(-)
Modified: trunk/tools/regression/src/report/html_writer.hpp
==============================================================================
--- trunk/tools/regression/src/report/html_writer.hpp (original)
+++ trunk/tools/regression/src/report/html_writer.hpp 2013-03-25 12:28:03 EDT (Mon, 25 Mar 2013)
@@ -61,7 +61,7 @@
return *this;
}
private:
- boost::zip::deflate_sink sink;
+ boost::zip::nocompression_sink sink;
};
}
Modified: trunk/tools/regression/src/report/zip.hpp
==============================================================================
--- trunk/tools/regression/src/report/zip.hpp (original)
+++ trunk/tools/regression/src/report/zip.hpp 2013-03-25 12:28:03 EDT (Mon, 25 Mar 2013)
@@ -674,10 +674,34 @@
{}
};
+class noop_filter
+{
+public:
+ typedef char char_type;
+
+ struct category :
+ ::boost::iostreams::output_filter_tag,
+ ::boost::iostreams::multichar_tag
+ {};
+
+ template<class Device>
+ std::streamsize write(Device& dev, const char * data, std::streamsize size) {
+ return boost::iostreams::write(dev, data, size);
+ }
+};
+
template<class Filter>
struct compression_method;
template<>
+struct compression_method< ::boost::zip::noop_filter> :
+ ::boost::mpl::integral_c<
+ ::boost::uint16_t,
+ ::boost::zip::zip_archive::compression_method::none
+ >
+{};
+
+template<>
struct compression_method< ::boost::zip::shrink_filter> :
::boost::mpl::integral_c<
::boost::uint16_t,
@@ -726,6 +750,7 @@
typedef zip_member_sink<shrink_filter> shrink_sink;
typedef zip_member_sink<deflate_filter> deflate_sink;
+typedef zip_member_sink<noop_filter> nocompression_sink;
}
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk