BZ2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "'''BZ2''' ('''bzip2''') is a single-file compression format, which is slightly slower but slightly more efficient than ZIP's standard {{w|Deflate}} compression. It is opt...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''BZ2''' ('''bzip2''') is a single-file [[compression]] format, which is slightly slower but slightly more efficient than ZIP's standard {{w|Deflate}} compression.
'''BZ2''' ('''bzip2''') is a single-file [[compression]] format, which is slightly slower but slightly more efficient than [[ZIP]]'s standard {{w|Deflate}} compression.


It is optionally used by {{src|4.1|nt=0}} [[FastDL]] servers to reduce network bandwidth usage, by sending the compressed file, which is then decompressed by the client.
It is optionally used by {{src|4.1|nt=0}} [[FastDL]] servers to reduce network bandwidth usage, by sending the compressed file, which is then decompressed by the client. This does not reduce storage usage, however; while the FastDL server only needs the BZ2 version, the server needs both the decompressed and BZ2 version, and the client will only keep the decompressed version.
 
Typical filesizes for BZ2 compression are as such:
* Significant savings: [[TXT|large text files]], [[MDL (Source)|model files]], [[VTF|textures]], and uncompressed [[BSP (Source)|BSPs]]
* Moderate to marginal savings: [[WAV]] files
* Negligible savings: [[MP3]]s and [[BSPZIP|LZMA-compressed]] [[BSP (Source)|BSPs]]
Using BZ2 when savings are small may be undesirable, as this increases load times for clients.


== See also ==
== See also ==

Latest revision as of 07:59, 26 March 2025

BZ2 (bzip2) is a single-file compression format, which is slightly slower but slightly more efficient than ZIP's standard Wikipedia icon Deflate compression.

It is optionally used by Source Source 1 FastDL servers to reduce network bandwidth usage, by sending the compressed file, which is then decompressed by the client. This does not reduce storage usage, however; while the FastDL server only needs the BZ2 version, the server needs both the decompressed and BZ2 version, and the client will only keep the decompressed version.

Typical filesizes for BZ2 compression are as such:

Using BZ2 when savings are small may be undesirable, as this increases load times for clients.

See also

External links