File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments