{# canonical_base is the OWNING tenant's origin: all 16 Peasy domains serve the same catalogue, so a page rendered by a non-owner points its canonical at the owner instead of competing with it. Falls back to this site for static/self-owned pages. #}
🍋
Menu
.bz2 Archive

bzip2

एक ओपन-सोर्स ब्लॉक-सॉर्टिंग कम्प्रेशन एल्गोरिथ्म। bzip2, gzip की तुलना में बेहतर कम्प्रेशन रेश्यो प्रदान करता है लेकिन कम्प्रेशन/डीकम्प्रेशन में अधिक समय लेता है।

MIME Type

application/x-bzip2

प्रकार

बाइनरी

संपीड़न

दोषरहित

लाभ

  • + Better compression ratio than gzip (typically 10-20% smaller)
  • + Built-in data integrity checking per block
  • + Widely available on Unix/Linux systems

हानियाँ

  • Significantly slower than gzip for both compression and decompression
  • Higher memory usage than gzip
  • Largely superseded by xz and Zstandard for new projects

.BZ2 कब उपयोग करें

सोर्स कोड डिस्ट्रीब्यूशन (.tar.bz2), आर्काइवल स्टोरेज जहाँ साइज़ गति से अधिक महत्वपूर्ण हो, और ऐसे परिदृश्य जहाँ gzip से बेहतर कम्प्रेशन आवश्यक हो।

तकनीकी विवरण

bzip2, Burrows-Wheeler Transform + Move-to-Front Transform + Huffman coding का उपयोग करता है। ब्लॉक साइज़ 100k-900k (डिफ़ॉल्ट 900k)। 'BZ' magic bytes से शुरू होता है। gzip से 10-15% बेहतर कम्प्रेशन लेकिन 2-6x धीमा। रैंडम एक्सेस सपोर्ट नहीं है।

इतिहास

Julian Seward ने 1996 में bzip2 विकसित किया। यह Burrows-Wheeler Transform (BWT) पर आधारित है जो 1994 में प्रकाशित हुआ। bzip2 ने tar आर्काइव (.tar.bz2) में gzip का विकल्प प्रदान किया जहाँ कम्प्रेशन रेश्यो गति से अधिक महत्वपूर्ण था।

.BZ2 से रूपांतरित करें

.BZ2 में रूपांतरित करें

संबंधित फ़ॉर्मेट