{"_id":"lzma-wasm","_rev":"5-1c22ccdc1280a163b6669768a4bce87a","name":"lzma-wasm","dist-tags":{"latest":"1.0.7"},"versions":{"1.0.2":{"name":"lzma-wasm","version":"1.0.2","keywords":["lzma","xz","lzip","wasm","webassembly","compress","decompress","archive","rust","zero-allocation","performance","browser","node"],"author":{"name":"Aluria"},"license":"(MIT OR Apache-2.0)","_id":"lzma-wasm@1.0.2","maintainers":[{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"}],"homepage":"https://github.com/Wu-Yijun/lzma-wasm#readme","bugs":{"url":"https://github.com/Wu-Yijun/lzma-wasm/issues"},"dist":{"shasum":"749562efcf85dc149f78d7eca6520cf8c7058816","tarball":"https://registry.npmjs.org/lzma-wasm/-/lzma-wasm-1.0.2.tgz","fileCount":8,"integrity":"sha512-PFcagc7xJBNj6L4hJ2T0vQza+LnkaeFx3hiIYinhaz8PrY9nOPW6F6aW4Iy5AQgaRHx21hXtOu00eHqU6MaWPQ==","signatures":[{"sig":"MEYCIQDi12l7MZ7P7sXsjxk2wvOGfrhK7To9I1Eze9ck6lwK0gIhANBZa4xb9E/2eMW2R1z+jjHO8hWIkSSr++1wuL09xMAl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":807666},"main":"./dist/cjs/index.cjs","type":"module","types":"./dist/index.d.ts","unpkg":"./dist/iife/index.js","module":"./dist/esm/index.js","engines":{"node":">=16.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","default":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"gitHead":"210d0c1b46a8bd67d4aa856cbb6d341c53f0f0c0","scripts":{"tsc":"tsc","build":"node ./scripts/build.ts","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"},"jsdelivr":"./dist/iife/index.js","repository":{"url":"git+https://github.com/Wu-Yijun/lzma-wasm.git","type":"git"},"_npmVersion":"11.10.1","description":"High-performance universal LZMA/XZ/LZIP compressor & decompressor in WebAssembly (Rust bindings)","directories":{},"sideEffects":false,"_nodeVersion":"25.7.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.28.0","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/lzma-wasm_1.0.2_1777912058429_0.1777138627586834","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"lzma-wasm","version":"1.0.3","keywords":["lzma","xz","lzip","wasm","webassembly","compress","decompress","archive","rust","zero-allocation","performance","browser","node"],"author":{"name":"Aluria"},"license":"(MIT OR Apache-2.0)","_id":"lzma-wasm@1.0.3","maintainers":[{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"}],"homepage":"https://github.com/Wu-Yijun/lzma-wasm#readme","bugs":{"url":"https://github.com/Wu-Yijun/lzma-wasm/issues"},"dist":{"shasum":"737dcbd8ed74e4dacdb02ad2fe4cb2893b8ac4e2","tarball":"https://registry.npmjs.org/lzma-wasm/-/lzma-wasm-1.0.3.tgz","fileCount":8,"integrity":"sha512-olNtNVULNRa9jR5BcigHiAsbaVnIUYip7erqdUIrvcDrjrQ/nRZfyyzWcrZVm+ro3NFp93+x7jHixDL40GyTVQ==","signatures":[{"sig":"MEUCIAhag1dilYUSe7rgVVZPaxOxEQ5VHVcRvGtEwmRYp16VAiEAshl7PEw8sgGao8jHpwc8guqmYzm3YjYrD/eVIGx+udk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":807822},"main":"./dist/cjs/index.cjs","type":"module","types":"./dist/index.d.ts","unpkg":"./dist/iife/index.js","module":"./dist/esm/index.js","engines":{"node":">=16.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","default":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"gitHead":"210d0c1b46a8bd67d4aa856cbb6d341c53f0f0c0","scripts":{"tsc":"tsc","build":"node ./scripts/build.ts","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"},"jsdelivr":"./dist/iife/index.js","repository":{"url":"git+https://github.com/Wu-Yijun/lzma-wasm.git","type":"git"},"_npmVersion":"11.10.1","description":"High-performance universal LZMA/XZ/LZIP compressor & decompressor in WebAssembly (Rust bindings)","directories":{},"sideEffects":false,"_nodeVersion":"25.7.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.28.0","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/lzma-wasm_1.0.3_1777915127086_0.6714587989252234","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"lzma-wasm","version":"1.0.4","keywords":["lzma","xz","lzip","wasm","webassembly","compress","decompress","archive","rust","zero-allocation","performance","browser","node"],"author":{"name":"Aluria"},"license":"(MIT OR Apache-2.0)","_id":"lzma-wasm@1.0.4","maintainers":[{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"}],"homepage":"https://github.com/Wu-Yijun/lzma-wasm#readme","bugs":{"url":"https://github.com/Wu-Yijun/lzma-wasm/issues"},"dist":{"shasum":"821e75b69cc16083d2c1ba3eaa14c811ffc188cf","tarball":"https://registry.npmjs.org/lzma-wasm/-/lzma-wasm-1.0.4.tgz","fileCount":8,"integrity":"sha512-QXqoK6Eu1LeWCFYtTX6NeBXcCQ/uoj9FW1PHZ21oTY2QaJijXID1pkK8/xwRCjtkw0EVgAzN2OoxCqq6LZhI6A==","signatures":[{"sig":"MEUCIQDWK4rEzTaYgpydxGSO2Vn4D0NaVmmgSd3TW9RXV5RRIgIgCRJifPuFfeSW9okORnCqeSmSRneSr4Uodmlf9FYvzEg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":809614},"main":"./dist/cjs/index.cjs","type":"module","_from":"file:lzma-wasm-1.0.4.tgz","types":"./dist/index.d.ts","unpkg":"./dist/iife/index.js","module":"./dist/esm/index.js","engines":{"node":">=16.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","default":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"scripts":{"tsc":"tsc","build":"node ./scripts/build.ts"},"_npmUser":{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"},"jsdelivr":"./dist/iife/index.js","_resolved":"C:\\Users\\admin\\AppData\\Local\\Temp\\fb7cb246e2a41a22f1b48346b9e2e8d9\\lzma-wasm-1.0.4.tgz","_integrity":"sha512-QXqoK6Eu1LeWCFYtTX6NeBXcCQ/uoj9FW1PHZ21oTY2QaJijXID1pkK8/xwRCjtkw0EVgAzN2OoxCqq6LZhI6A==","repository":{"url":"git+https://github.com/Wu-Yijun/lzma-wasm.git","type":"git"},"_npmVersion":"11.10.1","description":"High-performance universal LZMA/XZ/LZIP compressor & decompressor in WebAssembly (Rust bindings)","directories":{},"sideEffects":false,"_nodeVersion":"25.7.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.28.0","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/lzma-wasm_1.0.4_1777949342619_0.9780306649404371","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"lzma-wasm","version":"1.0.5","keywords":["lzma","xz","lzip","wasm","webassembly","compress","decompress","archive","rust","zero-allocation","performance","browser","node"],"author":{"name":"Aluria"},"license":"(MIT OR Apache-2.0)","_id":"lzma-wasm@1.0.5","maintainers":[{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"}],"homepage":"https://github.com/Wu-Yijun/lzma-wasm#readme","bugs":{"url":"https://github.com/Wu-Yijun/lzma-wasm/issues"},"dist":{"shasum":"bab24d5ba6187c9318908ed4520a0f430194f4b8","tarball":"https://registry.npmjs.org/lzma-wasm/-/lzma-wasm-1.0.5.tgz","fileCount":8,"integrity":"sha512-MMHMYBks0A6jS2EoZc4d/wqQWEE29V2uSx4311IuEC8iLME/8q6L2MVb9vd+i9zGQfE9R+WIqofeOuyq5XP3Mw==","signatures":[{"sig":"MEQCIEmcAGo1w82t5Hz4szcjlvB9yAqmzlw3OzIUs7LQfVN0AiAKz4jXpvW0BEmaweYFKrclUpmqatPAKscazkuw7+BjQg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":809967},"main":"./dist/cjs/index.cjs","type":"module","_from":"file:lzma-wasm-1.0.5.tgz","types":"./dist/index.d.ts","unpkg":"./dist/iife/index.js","module":"./dist/esm/index.js","engines":{"node":">=16.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","default":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"scripts":{"tsc":"tsc","build":"node ./scripts/build.ts"},"_npmUser":{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"},"jsdelivr":"./dist/iife/index.js","_resolved":"C:\\Users\\admin\\AppData\\Local\\Temp\\5738f5c4169b0a4842853e78ba955f9a\\lzma-wasm-1.0.5.tgz","_integrity":"sha512-MMHMYBks0A6jS2EoZc4d/wqQWEE29V2uSx4311IuEC8iLME/8q6L2MVb9vd+i9zGQfE9R+WIqofeOuyq5XP3Mw==","repository":{"url":"git+https://github.com/Wu-Yijun/lzma-wasm.git","type":"git"},"_npmVersion":"11.10.1","description":"High-performance universal LZMA/XZ/LZIP compressor & decompressor in WebAssembly (Rust bindings)","directories":{},"sideEffects":false,"_nodeVersion":"25.7.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.28.0","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/lzma-wasm_1.0.5_1777950381994_0.38031768975479885","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"lzma-wasm","version":"1.0.7","author":{"name":"Aluria"},"description":"High-performance universal LZMA/XZ/LZIP compressor & decompressor in WebAssembly (Rust bindings)","keywords":["lzma","xz","lzip","wasm","webassembly","compress","decompress","archive","rust","zero-allocation","performance","browser","node"],"homepage":"https://github.com/Wu-Yijun/lzma-wasm#readme","bugs":{"url":"https://github.com/Wu-Yijun/lzma-wasm/issues"},"repository":{"type":"git","url":"git+https://github.com/Wu-Yijun/lzma-wasm.git"},"license":"(MIT OR Apache-2.0)","sideEffects":false,"engines":{"node":">=16.0.0"},"type":"module","main":"./dist/cjs/index.cjs","module":"./dist/esm/index.js","types":"./dist/index.d.ts","unpkg":"./dist/iife/index.js","jsdelivr":"./dist/iife/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs","default":"./dist/esm/index.js"}},"scripts":{"build":"node ./scripts/build.ts","tsc":"tsc","prepublishOnly":"pnpm run build","test":"vitest run"},"devDependencies":{"@types/node":"^25.6.0","esbuild":"^0.28.0","typescript":"^6.0.3","vitest":"^4.1.5"},"gitHead":"dbe085ddcc58863bc87025520f7467cd8dc8a364","_id":"lzma-wasm@1.0.7","_nodeVersion":"25.7.0","_npmVersion":"11.10.1","dist":{"integrity":"sha512-/fm+kRC7MqF9aCAWU5GwmgWllzM7ehC46aB5Va7V1PAnUl0qSU8ZA2XWk8yOgZbkgL6MWLDyYIVJR+UQziwvUA==","shasum":"19da1072a728fac7262d9e4fcfebcf7aed076743","tarball":"https://registry.npmjs.org/lzma-wasm/-/lzma-wasm-1.0.7.tgz","fileCount":8,"unpackedSize":832394,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/lzma-wasm@1.0.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICXOCKDFsaf9EmC8zyNudKiK28MZ/Gk58kMzViWVmbYeAiADQtoJTKDD1psLMacALzBoGnXbfx7qLfyqq+rRu/zOrQ=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5d31c38d-5298-47c5-994f-9d7c9454beb3"}},"directories":{},"maintainers":[{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lzma-wasm_1.0.7_1778056281604_0.49220902724747106"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-04T16:27:38.327Z","modified":"2026-05-06T08:31:22.212Z","1.0.2":"2026-05-04T16:27:38.715Z","1.0.3":"2026-05-04T17:18:47.348Z","1.0.4":"2026-05-05T02:49:02.804Z","1.0.5":"2026-05-05T03:06:22.201Z","1.0.7":"2026-05-06T08:31:21.848Z"},"bugs":{"url":"https://github.com/Wu-Yijun/lzma-wasm/issues"},"author":{"name":"Aluria"},"license":"(MIT OR Apache-2.0)","homepage":"https://github.com/Wu-Yijun/lzma-wasm#readme","keywords":["lzma","xz","lzip","wasm","webassembly","compress","decompress","archive","rust","zero-allocation","performance","browser","node"],"repository":{"type":"git","url":"git+https://github.com/Wu-Yijun/lzma-wasm.git"},"description":"High-performance universal LZMA/XZ/LZIP compressor & decompressor in WebAssembly (Rust bindings)","maintainers":[{"name":"aluria","email":"wuyijun21@mails.ucas.ac.cn"}],"readme":"# lzma-wasm\n\n[![npm version](https://img.shields.io/npm/v/lzma-wasm.svg)](https://www.npmjs.com/package/lzma-wasm)\n[![License](https://img.shields.io/badge/License-MIT%20OR%20Apache--2.0-blue.svg)](#license)\n\n**[View on GitHub](https://github.com/Wu-Yijun/lzma-wasm)** | **[View on npm](https://www.npmjs.com/package/lzma-wasm)**\n\nA high-performance, universal WebAssembly binding for the [`lzma-rust2`](https://github.com/hasenbanck/lzma-rust2) crate. It brings near-native LZMA, XZ, and LZIP compression and decompression to Node.js, modern browsers, and bundlers.\n\n## Features\n\n* **Near-Native Performance:** Powered by Rust and WebAssembly, heavily optimized for execution in V8/modern JS engines.\n* **Universal & Zero-Config:** The Wasm binary is base64-inlined. **No `wasm-loader`, no static asset serving, and no Webpack/Vite configuration required.** Just import and use it anywhere.\n* **Multi-Format Support:** Seamlessly supports `.xz` (modern, recommended), `.lzma` (legacy), and `.lz` (lzip) formats.\n* **Zero-Allocation Decompression:** Expert APIs available to bypass JavaScript Garbage Collection (GC) overhead by decompressing directly into pre-allocated memory.\n* **Safe & Robust:** Built-in memory limits to protect your runtime from Out-Of-Memory (OOM) crashes and malicious zip bombs.\n\n## 📦 Installation\n\n```bash\nnpm install lzma-wasm\n# or\nyarn add lzma-wasm\npnpm add lzma-wasm\n```\n\n## Import Methods\n\nThis library ships with ES Modules, CommonJS, and IIFE builds, making it compatible with any environment.\n\n**1. ES Modules (Vite, Rollup, Deno, Node.js ESM)**\n```javascript\nimport { initWasm, compress, decompress } from 'lzma-wasm';\n```\n\n**2. CommonJS (Node.js)**\n```javascript\nconst { initWasm, compress, decompress } = require('lzma-wasm');\n```\n\n**3. Browser / CDN (Raw HTML)**\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/lzma-wasm/dist/iife/index.js\"></script>\n<script>\n  // Exposed globally as `lzma_wasm`\n  const { initWasm, compress, decompress } = window.lzma_wasm;\n</script>\n```\n\n## 🚀 Quick Start\n\n**⚠️ Important:** You must call and await `initWasm()` once before using any compression or decompression methods.\n\nThe asynchronous `initWasm` can be replaced by the synchronous function `initWasmSync`.\n\n```javascript\nimport { initWasm, compress, decompress } from 'lzma-wasm';\n\nasync function run() {\n    // 1. Initialize the Wasm module\n    await initWasm();\n\n    const text = \"WebAssembly is awesome! \".repeat(100);\n    const rawData = new TextEncoder().encode(text);\n\n    // 2. Compress (Default is 'xz' format, level 6)\n    const compressed = compress(rawData, { format: 'xz', level: 6 });\n    console.log(`Compressed size: ${compressed.length} bytes`);\n\n    // 3. Decompress\n    const decompressed = decompress(compressed);\n    const decodedText = new TextDecoder().decode(decompressed);\n    \n    console.log(decodedText.substring(0, 23)); // \"WebAssembly is awesome!\"\n}\n\nrun();\n```\n\n## ⚡ Advanced: Zero-Allocation Decompression\n\nFor extreme performance scenarios (e.g., high-frequency decompression, large files), you can avoid dynamic memory allocation and GC pressure by providing the `expectedSize`. The Wasm module will write directly into a pre-allocated buffer.\n\n```javascript\n// If you know the exact size of the uncompressed data beforehand:\nconst uncompressedSize = 2400; \n\nconst result = decompress(compressed, { \n    expectedSize: uncompressedSize \n});\n// 'result' will be a Uint8Array containing exactly 2400 bytes, \n// achieved with 0 internal reallocations.\n```\n\nAnd you can call `decompressToBuffer` to decompresses data directly into a pre-allocated JavaScript `Uint8Array`.\n\n```javascript\n// You must ensure enough space for your buffer:\nconst buffer = new Unit8Array(2400);\n\n// The data will be written directly into the buffer you provided.\nconst length = decompressToBuffer(compressed, buffer);\n```\n\n## 📊 Performance Benchmarks\n\nUsing a non-rigorous test, we briefly evaluated the compression and decompression performance of various algorithms and compression levels within our test environment. *(Note: The observed speeds may appear extraordinarily high because highly repetitive JSON text data was used as the test sample, rather than dense binary executables.)*\n\n\n| (index) | Env      | Platform  | Format | Level | RawSize KB | Compression Rate | Enc MB/s | Dec MB/s  | DecToBuf MB/s |\n| :---:   |  :---:   |  :---:    |  :---: | :---: |  ---:     |  ---:        |  ---:   |  ---:    |  ---:         |\n| 0       | 'ESM'    | 'Nodejs'  | 'XZ'   | 1     | 8426.02   | 1.1273       | 140.598 | 358.707  | 368.754       |\n| 1       | 'ESM'    | 'Nodejs'  | 'XZ'   | 6     | 8426.02   | 1.1247       | 13.753  | 353.292  | 372.668       |\n| 2       | 'ESM'    | 'Nodejs'  | 'XZ'   | 9     | 8426.02   | 1.1247       | 13.177  | 300.286  | 322.342       |\n| 3       | 'ESM'    | 'Nodejs'  | 'LZMA' | 1     | 8426.02   | 1.1262       | 206.875 | 1343.863 | 1501.964      |\n| 4       | 'ESM'    | 'Nodejs'  | 'LZMA' | 6     | 8426.02   | 1.1236       | 14.485  | 1224.712 | 1445.286      |\n| 5       | 'ESM'    | 'Nodejs'  | 'LZMA' | 9     | 8426.02   | 1.1236       | 13.545  | 1242.776 | 1409.033      |\n| 6       | 'ESM'    | 'Nodejs'  | 'LZIP' | 1     | 8426.02   | 1.1265       | 156.559 | 379.209  | 394.477       |\n| 7       | 'ESM'    | 'Nodejs'  | 'LZIP' | 6     | 8426.02   | 1.1238       | 13.907  | 366.508  | 390.274       |\n| 8       | 'ESM'    | 'Nodejs'  | 'LZIP' | 9     | 8426.02   | 1.1238       | 13.127  | 318.203  | 339.759       |\n| 9       | 'CJS'    | 'Nodejs'  | 'XZ'   | 1     | 8392.24   | 1.1305       | 149.621 | 360.957  | 374.654       |\n| 10      | 'CJS'    | 'Nodejs'  | 'XZ'   | 6     | 8392.24   | 1.1219       | 13.839  | 355.453  | 370.518       |\n| 11      | 'CJS'    | 'Nodejs'  | 'XZ'   | 9     | 8392.24   | 1.1219       | 13.242  | 304.177  | 316.927       |\n| 12      | 'CJS'    | 'Nodejs'  | 'LZMA' | 1     | 8392.24   | 1.1294       | 205.239 | 1344.910 | 1554.119      |\n| 13      | 'CJS'    | 'Nodejs'  | 'LZMA' | 6     | 8392.24   | 1.1208       | 14.569  | 1277.358 | 1482.728      |\n| 14      | 'CJS'    | 'Nodejs'  | 'LZMA' | 9     | 8392.24   | 1.1208       | 13.633  | 1299.108 | 1487.986      |\n| 15      | 'CJS'    | 'Nodejs'  | 'LZIP' | 1     | 8392.24   | 1.1296       | 152.282 | 393.079  | 405.422       |\n| 16      | 'CJS'    | 'Nodejs'  | 'LZIP' | 6     | 8392.24   | 1.1211       | 14.054  | 374.654  | 379.739       |\n| 17      | 'CJS'    | 'Nodejs'  | 'LZIP' | 9     | 8392.24   | 1.1211       | 13.405  | 328.078  | 345.076       |\n| 18      | 'IMPORT' | 'Browser' | 'XZ'   | 1     | 8387.91   | 1.1413       | 96.992  | 340.972  | 302.922       |\n| 19      | 'IMPORT' | 'Browser' | 'XZ'   | 6     | 8387.91   | 1.1228       | 5.685   | 330.233  | 230.627       |\n| 20      | 'IMPORT' | 'Browser' | 'XZ'   | 9     | 8387.91   | 1.1228       | 5.939   | 295.349  | 315.691       |\n| 21      | 'IMPORT' | 'Browser' | 'LZMA' | 1     | 8387.91   | 1.1402       | 117.117 | 933.027  | 1011.811      |\n| 22      | 'IMPORT' | 'Browser' | 'LZMA' | 6     | 8387.91   | 1.1217       | 5.341   | 788.337  | 1009.375      |\n| 23      | 'IMPORT' | 'Browser' | 'LZMA' | 9     | 8387.91   | 1.1217       | 5.784   | 878.315  | 1011.811      |\n| 24      | 'IMPORT' | 'Browser' | 'LZIP' | 1     | 8387.91   | 1.1405       | 96.479  | 322.736  | 344.049       |\n| 25      | 'IMPORT' | 'Browser' | 'LZIP' | 6     | 8387.91   | 1.1219       | 5.785   | 321.007  | 338.495       |\n| 26      | 'IMPORT' | 'Browser' | 'LZIP' | 9     | 8387.91   | 1.1219       | 5.670   | 280.814  | 289.738       |\n| 27      | 'CDN'    | 'Browser' | 'XZ'   | 1     | 8417.64   | 1.1330       | 94.136  | 290.464  | 349.425       |\n| 28      | 'CDN'    | 'Browser' | 'XZ'   | 6     | 8417.64   | 1.1302       | 6.052   | 283.422  | 345.836       |\n| 29      | 'CDN'    | 'Browser' | 'XZ'   | 9     | 8417.64   | 1.1302       | 5.882   | 255.312  | 307.438       |\n| 30      | 'CDN'    | 'Browser' | 'LZMA' | 1     | 8417.64   | 1.1319       | 115.563 | 953.300  | 1017.852      |\n| 31      | 'CDN'    | 'Browser' | 'LZMA' | 6     | 8417.64   | 1.1291       | 5.996   | 911.000  | 1008.101      |\n| 32      | 'CDN'    | 'Browser' | 'LZMA' | 9     | 8417.64   | 1.1291       | 5.843   | 926.033  | 1029.051      |\n| 33      | 'CDN'    | 'Browser' | 'LZIP' | 1     | 8417.64   | 1.1322       | 99.288  | 318.007  | 340.933       |\n| 34      | 'CDN'    | 'Browser' | 'LZIP' | 6     | 8417.64   | 1.1293       | 5.939   | 329.716  | 340.519       |\n| 35      | 'CDN'    | 'Browser' | 'LZIP' | 9     | 8417.64   | 1.1293       | 5.706   | 282.756  | 290.263       |\n\n> **Takeaway:** LZMA provides blisteringly fast decompression speeds, while XZ provides a robust modern container format. Using the Zero-Allocation strategy (`DecToBuf`) consistently boosts decompression throughput by eliminating internal memory reallocations.\n\n## 📄 License\n\nThis project is dual-licensed under either the [MIT License](LICENSE-MIT) or the [Apache License, Version 2.0](LICENSE-APACHE), at your option. \n\nThe underlying Rust compression logic is powered by [lzma-rust2](https://github.com/hasenbanck/lzma-rust2) (Apache-2.0).\n","readmeFilename":"README.md"}