diff --git a/debian/changelog b/debian/changelog index 195caad2..dd124a0b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +deepin-compressor (5.12.28) unstable; urgency=medium + + * changelog 5.12.28. + + -- zhangtingan Wed, 15 Apr 2026 14:47:36 +0800 + deepin-compressor (5.12.27) unstable; urgency=medium * changelog 5.12.27. diff --git a/src/source/mainwindow.cpp b/src/source/mainwindow.cpp index 620eecf2..ae7f60f0 100644 --- a/src/source/mainwindow.cpp +++ b/src/source/mainwindow.cpp @@ -1077,23 +1077,8 @@ void MainWindow::slotCompress(const QVariant &val) bool bUseLibarchive = false; #ifdef __aarch64__ // 华为arm平台 zip压缩 性能提升. 在多线程场景下使用7z,单线程场景下使用libarchive - // 最大文件超过50MB使用libarchive - if (maxFileSize_ > 50 * 1024 * 1024) { - bUseLibarchive = true; - } - // 总大小超过200MB使用libarchive - else if (m_stCompressParameter.qSize > 200 * 1024 * 1024) { - bUseLibarchive = true; - } - // 总大小超过100MB且最大文件超过10MB使用libarchive(处理均匀分布的大文件) - else if (m_stCompressParameter.qSize > 100 * 1024 * 1024 && maxFileSize_ > 10 * 1024 * 1024) { - bUseLibarchive = true; - } - // 大文件占比超过60%使用libarchive - else { - double maxFileSizeProportion = static_cast(maxFileSize_) / static_cast(m_stCompressParameter.qSize); - bUseLibarchive = maxFileSizeProportion > 0.6; - } + double maxFileSizeProportion = static_cast(maxFileSize_) / static_cast(m_stCompressParameter.qSize); + bUseLibarchive = maxFileSizeProportion > 0.6; #else bUseLibarchive = false; #endif