Skip to content
This repository has been archived by the owner on Jan 3, 2021. It is now read-only.

能否降低下内存占用和体积 #41

Open
niphor opened this issue Oct 9, 2020 · 7 comments
Open

能否降低下内存占用和体积 #41

niphor opened this issue Oct 9, 2020 · 7 comments

Comments

@niphor
Copy link

niphor commented Oct 9, 2020

16M+128M的路由器资源对于 10MB之巨的v2 core来讲实在是捉襟见肘
即便使用upx压缩,仍有4MB不到的体积,
但是压缩之后,反而在运行阶段增加了对内存的占用(毕竟是要解压了运行的)适得其反
128M的内存运行v2之后基本已无太多可用内存

所以能否针对路由器SoC CPU的版本进行下程序优化或精简、降低下内存占用或体积。

谢谢。

@yomnxkcs
Copy link

以前折腾来折腾去,最后发现硬路由还是单纯当路由来用比较好。网络稳定性高,出问题时也容易排除。其他功能还是放到软路由或者NAS里面吧。

@kslr
Copy link
Contributor

kslr commented Nov 21, 2020

没有这方面的计划,但你可以来帮助解决这部分。

p.s 即使内存搞定,cpu也太一般比较弱

@niphor
Copy link
Author

niphor commented Nov 23, 2020

请问 我可以在哪些层面帮助呢?go我不太会

@kslr
Copy link
Contributor

kslr commented Nov 23, 2020

core 目前是可以选择功能编译的,你可以按照自己需要的部分编译,那么能不能改善这个功能?简化掉编译的步骤呢

@Janet-Baker
Copy link

你可以考虑一下想办法把v2ctl给去掉。
那个是大头。。

@niphor
Copy link
Author

niphor commented Dec 1, 2020

@Janet-Baker 那个已经去了

@github-actions
Copy link

github-actions bot commented Jan 1, 2021

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants