Skip to content

Commit 4d8f11a

Browse files
authored
Revert "fix: [zip] improve ARM platform plugin selection for large files" (#388)
* Revert "fix: [zip] improve ARM platform plugin selection for large files" This reverts commit feac245. * chore: update changelog Log: update ver to 5.12.28
1 parent 8d26d14 commit 4d8f11a

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
deepin-compressor (5.12.28) unstable; urgency=medium
2+
3+
* changelog 5.12.28.
4+
5+
-- zhangtingan <zhangtingan@uniontech.com> Wed, 15 Apr 2026 14:47:36 +0800
6+
17
deepin-compressor (5.12.27) unstable; urgency=medium
28

39
* changelog 5.12.27.

src/source/mainwindow.cpp

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,23 +1077,8 @@ void MainWindow::slotCompress(const QVariant &val)
10771077

10781078
bool bUseLibarchive = false;
10791079
#ifdef __aarch64__ // 华为arm平台 zip压缩 性能提升. 在多线程场景下使用7z,单线程场景下使用libarchive
1080-
// 最大文件超过50MB使用libarchive
1081-
if (maxFileSize_ > 50 * 1024 * 1024) {
1082-
bUseLibarchive = true;
1083-
}
1084-
// 总大小超过200MB使用libarchive
1085-
else if (m_stCompressParameter.qSize > 200 * 1024 * 1024) {
1086-
bUseLibarchive = true;
1087-
}
1088-
// 总大小超过100MB且最大文件超过10MB使用libarchive(处理均匀分布的大文件)
1089-
else if (m_stCompressParameter.qSize > 100 * 1024 * 1024 && maxFileSize_ > 10 * 1024 * 1024) {
1090-
bUseLibarchive = true;
1091-
}
1092-
// 大文件占比超过60%使用libarchive
1093-
else {
1094-
double maxFileSizeProportion = static_cast<double>(maxFileSize_) / static_cast<double>(m_stCompressParameter.qSize);
1095-
bUseLibarchive = maxFileSizeProportion > 0.6;
1096-
}
1080+
double maxFileSizeProportion = static_cast<double>(maxFileSize_) / static_cast<double>(m_stCompressParameter.qSize);
1081+
bUseLibarchive = maxFileSizeProportion > 0.6;
10971082
#else
10981083
bUseLibarchive = false;
10991084
#endif

0 commit comments

Comments
 (0)