Changes between Version 6 and Version 7 of FileCompression
- Timestamp:
- Feb 27, 2008, 10:06:57 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FileCompression
v6 v7 1 1 [[PageOutline]] 2 2 = File compression = 3 == Compression of output files == 3 == Compression of output files == #compress-output 4 4 5 5 If you include the `<gzip_when_done>` tag in an [XmlFormat#Files output file description], the file will be gzip-compressed after it has been generated. 6 6 7 == Compression of input files == 7 == Compression of input files == #compress-input 8 8 9 9 Starting with version 5.4, the BOINC client is able to handle HTTP `Content-Encoding` types 'deflate' (zlib algorithm) and 'gzip' (gzip algorithm). The client decompresses these files 'on the fly' and stores them on disk in uncompressed form. … … 11 11 You can use this in two ways: 12 12 13 * Use the Apache 2.0 mod_deflate module to automatically compress files on the fly. This method will work with all BOINC clients, but it will do compression only for 5.4+ clients. Info on how to configure this is below.13 * Use the Apache 2.0 mod_deflate module to automatically compress files on the fly. This method will work with all BOINC clients, but it will do compression only for 5.4+ clients. See [#mod_deflate Using mod_deflate]. 14 14 * Compress files and give them a filename suffix such as '.gz'. The name used in your `<file_info>` elements, however, is the original filename without '.gz'. BOINC clients older than 5.4 won't be able to download files. 15 15 … … 26 26 27 27 28 == Using mod_deflate ==28 === Using mod_deflate === #mod_deflate 29 29 30 30 Apache 2.0 includes a module called mod_deflate. … … 89 89 `.faa` and `.mask` served from the download directory. 90 90 91 == Using boinc_zip == 91 == Using boinc_zip == #boinc-zip 92 92 93 93 You can also do compression in your application. … … 104 104 distributing `zip` & `unzip` executable binaries for different platforms). 105 105 106 === Limitations === 106 === Limitations === #boinc-zip-limitations 107 107 The "unzip" functionality is there, that is you can unzip 108 108 a file and it will create all directories & files in the zip file. … … 112 112 function which will be explained below. 113 113 114 === Building === 114 === Building === #boinc-zip-building 115 115 116 116 For Windows, you can just add the project "boinc_zip" to your … … 129 129 Also, please note that boinc_zip relies on some BOINC functions that you will need (and will most likely be in your app already since they are handy) -- namely `boinc/lib/filesys.C` and `boinc/lib/util.C`. 130 130 131 === Using === 131 === Using === #boinc-zip-using 132 132 Basically, you will need to `#include "boinc_zip.h"` in your app (of course 133 133 your compiler will need to know where it is, i.e. -I../boinc/zip).