[deepin exploration] aptss 新版测试:性能提升 300%
Tofloor
poster avatar
神末shenmo
deepin
Spark-App
Solutions Team Moderator
2025-02-23 23:19
Author

更新: 4.5.0+版本的星火应用商店/终端版应用商店/aptss 已经合入了加速补丁,无需额外操作


前言

Hola,这里是shenmo

aptss 是 星火应用商店 和 GXDE OS 的apt wrapper,基于 apt-fast ,提供智能多线程下载加速功能

然而,aptss的性能一直饱受诟病,尤其是下载一些依赖非常多的软件包时,会卡很久

原因是 在bash使用cut等外部命令切割字符串效率很低,而原版的 apt-fast 的单线程设计更是让这一切雪上加霜

通过参考 apt-fast 1.10 的修改并添加多线程功能,新 aptss 的效能有了质的飞跃

主要参考补丁: https://github.com/ilikenwf/apt-fast/commit/dc4ef45b5178c3d3abcc9a71cb64011a9bf145fd

测试使用指南

  • 复制 https://gitee.com/GXDE-OS/aptss/blob/master/src/opt/durapps/spark-store/bin/apt-fast/ss-apt-fast 全文
  • 使用root权限编辑并覆盖 /opt/durapps/spark-store/bin/apt-fast/ss-apt-fast 的内容

效果

Before:

图片.png

After:

图片.png


update:重写了分派机制后,性能进一步提升了

416154145-1c391977-3790-4ba5-8620-bdd36073609a.png


我也向上游也提交了相关的多线程补丁~ https://github.com/ilikenwf/apt-fast/pull/252

Reply Favorite View the author
All Replies
花雨落逝
Moderator
2025-02-23 23:31
#1

沙发~

恭喜呀~

Reply View the author
mozixun
Moderator
2025-02-23 23:37
#2

like

Reply View the author
昨夜的星辰
deepin
2025-02-24 00:01
#3

like

Reply View the author
ljq790615
deepin
2025-02-24 06:16
#4

agree

Reply View the author
蓝鲸
deepin
2025-02-24 08:11
#5

kissing_heart

Reply View the author
waittingsummer
deepin
2025-02-24 08:25
#6

具体怎么装,怎么用呢?

还有gxde下我没有顾虑去用这个,反正下软件只能靠星火商店。

假如是V23呢?不会对内测推送更新下载、深度商店下载产生影响吧?

Reply View the author
wcs4221
deepin beta test group
2025-02-24 08:32
#7

smirk

Reply View the author
jjcui8595
deepin
Resources Team Moderator
2025-02-24 08:56
#8

建议直接提供ss-apt-fast文件

Reply View the author
神末shenmo
deepin
Spark-App
Solutions Team Moderator
2025-02-24 10:52
#9
waittingsummer

具体怎么装,怎么用呢?

还有gxde下我没有顾虑去用这个,反正下软件只能靠星火商店。

假如是V23呢?不会对内测推送更新下载、深度商店下载产生影响吧?

指南里写了怎么使用

只影响aptss,所以不会对deepin功能产生任何影响

倒不如说这个影响GXDE更大一些,GXDE的软件包升级服务是aptss(GXDE的软件安装/卸载/更新是依托aptss的),你替换文件之后应该软件安装和升级速度会大幅提升

Reply View the author
神末shenmo
deepin
Spark-App
Solutions Team Moderator
2025-02-24 10:54
#10
jjcui8595

建议直接提供ss-apt-fast文件

帖子里就给链接了啊doubt

如果自用的话也可以直接装apt-fast~

Reply View the author
wcs4221
deepin beta test group
2025-03-02 07:26
#11
神末shenmo

指南里写了怎么使用

只影响aptss,所以不会对deepin功能产生任何影响

倒不如说这个影响GXDE更大一些,GXDE的软件包升级服务是aptss(GXDE的软件安装/卸载/更新是依托aptss的),你替换文件之后应该软件安装和升级速度会大幅提升

的确是这样。好用而更快。

Reply View the author
王文昊·(Wenhao Wang)
deepin
2025-03-09 17:41
#12

agree

Reply View the author