极限压缩参数设置,不考虑时间

- Archive Format(压缩格式):选择7-zip
- Compress Level(压缩等级):这里不考虑时间因素,只考虑压缩效果,所以选Ultra(9-极限压缩)
- Method(压缩方法):选择LZMA2

- Dictionary Size(字典大小):即构建一个可被查询的字典,压缩时对照记录,以提高压缩效果,字典越大可以对比内容越多,压缩率就越大,当然相应的CPU、内存占用和所需时间也会增加;注意内存大小,通常选择256MB
- Word Size(单词大小):即单词的长度,使用较大的单词可略微提高压缩效果,同时也稍降低压缩速度;选最大273
- Solid Block Size(固实数据大小):固实压缩文件中即将全部文件都当成一个连续数据流来看待,压缩/提取过程中都需要上下文信息;固实数据大小决定了这个连续数据流的大小,减少固体块大小可减少潜在的受益和压缩效果。使用固实
- Number of CPU threads(CPU线程数):线程越多压缩速度越快,但占用的内存也越多,根据内存选择线程数,内存允许的情况下尽可能多线程
- Parameters(参数):输入“f=BCJ2”,指定使用BCJ2这个过滤器,用来处理x86的可执行文件会有更好的效果,比如exe、dll、sys等
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
(function () { function prettifyLang(raw) { if(!raw) return 'Text'; // "language-plain-text" => "Plain Text" return raw .replace(/^language-?/i, '') .replace(/^lang-?/i, '') .replace(/[^a-z0-9\-_]/ig, '') .replace(/[-_]+/g, ' ') .replace(/\b\w/g, function(c){ return c.toUpperCase(); }) || 'Text'; } function buildCopySVG() { return ''; } function makeToolbarFor(pre) { if (pre.closest('.code-wrapper')) return; // 已处理 var code = pre.querySelector('code'); // 取 class 中的 language-XXX 或 lang-XXX var lang = 'Text'; if (code && code.className) { var m = code.className.match(/(?:language|lang)[-_]?([^\s]+)/i); if (m) lang = prettifyLang(m[0]); else { // 若没有找到,尝试取 code 的 data-lang 属性 lang = code.getAttribute('data-lang') || code.getAttribute('data-language') || 'Text'; lang = prettifyLang(lang); } } // wrap var wrapper = document.createElement('div'); wrapper.className = 'code-wrapper'; pre.parentNode.insertBefore(wrapper, pre); wrapper.appendChild(pre); // toolbar var toolbar = document.createElement('div'); toolbar.className = 'code-toolbar'; var langSpan = document.createElement('span'); langSpan.className = 'code-lang'; langSpan.textContent = lang; var actions = document.createElement('div'); actions.className = 'code-actions'; var copyBtn = document.createElement('button'); copyBtn.type = 'button'; copyBtn.className = 'copy-btn'; copyBtn.setAttribute('aria-label', '复制代码'); copyBtn.innerHTML = buildCopySVG() + '复制'; actions.appendChild(copyBtn); toolbar.appendChild(langSpan); toolbar.appendChild(actions); wrapper.insertBefore(toolbar, pre); // copy handler copyBtn.addEventListener('click', function () { var text = code ? code.innerText : pre.innerText; if (!text) return; // 现代 API if (navigator.clipboard && navigator.clipboard.writeText) { navigator.clipboard.writeText(text).then(function () { flashCopied(copyBtn); }, function () { fallbackCopy(text, copyBtn); }); } else { fallbackCopy(text, copyBtn); } }); } function fallbackCopy(text, btn) { try { var ta = document.createElement('textarea'); ta.value = text; // prevent scroll jump ta.style.position = 'fixed'; ta.style.left = '-9999px'; document.body.appendChild(ta); ta.select(); var ok = document.execCommand('copy'); document.body.removeChild(ta); if (ok) flashCopied(btn); else alert('复制失败,请手动复制。'); } catch (e) { alert('复制失败,请手动复制。'); } } function flashCopied(btn) { var span = btn.querySelector('.copy-text'); if (!span) return; span.textContent = '已复制'; btn.classList.add('copied'); setTimeout(function () { span.textContent = '复制'; btn.classList.remove('copied'); }, 2000); } // Run on DOM ready if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', function () { document.querySelectorAll('pre').forEach(makeToolbarFor); }); } else { document.querySelectorAll('pre').forEach(makeToolbarFor); } // 如果网站通过 PJAX/章节异步加载内容,建议在对应回调中再次调用 makeToolbarFor })();