[GH-ISSUE #1489] FRPC的体积问题 #1176

Closed
opened 2026-05-05 12:45:18 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @QQ2017 on GitHub (Oct 30, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1489

What version of frp are you using (./frpc -v or ./frps -v)?
all

What operating system and processor architecture are you using (go env)?
win64

Configures you used:

Steps to reproduce the issue:
客户端程序体积过大,我相信有一些人和我一样希望将FRP集成到自己的软件中(非商业用途)。能否新开一个分支,称为 frpc_lite,只做单纯的TCP和stcp类型支持,客户端程序的体积应该可以缩小相当多~

Originally created by @QQ2017 on GitHub (Oct 30, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1489 **What version of frp are you using (./frpc -v or ./frps -v)?** all **What operating system and processor architecture are you using (`go env`)?** win64 **Configures you used:** - **Steps to reproduce the issue:** 客户端程序体积过大,我相信有一些人和我一样希望将FRP集成到自己的软件中(非商业用途)。能否新开一个分支,称为 frpc_lite,只做单纯的TCP和stcp类型支持,客户端程序的体积应该可以缩小相当多~
Author
Owner

@TigerBeanst commented on GitHub (Oct 30, 2019):

image

<!-- gh-comment-id:547848541 --> @TigerBeanst commented on GitHub (Oct 30, 2019): ![image](https://user-images.githubusercontent.com/3889846/67852879-38c28500-fb48-11e9-997a-16a76cc6b5b4.png)
Author
Owner

@qiang-yu commented on GitHub (Oct 31, 2019):

go 开发的程序都是这么大的,没办法,除非你自己用 C重写一个

<!-- gh-comment-id:548209010 --> @qiang-yu commented on GitHub (Oct 31, 2019): go 开发的程序都是这么大的,没办法,除非你自己用 C重写一个
Author
Owner

@Xeath commented on GitHub (Nov 3, 2019):

好想 Go 编译后就是这么大吧……

<!-- gh-comment-id:549147735 --> @Xeath commented on GitHub (Nov 3, 2019): 好想 Go 编译后就是这么大吧……
Author
Owner

@lazy-luo commented on GitHub (Nov 6, 2019):

c++实现类似的功能,静态联编gcc依赖库后大约为1M左右,也不小。参见 github.com/lazy-luo/smarGate,如果静态编译openssl大小会增大到2M+

<!-- gh-comment-id:550300595 --> @lazy-luo commented on GitHub (Nov 6, 2019): c++实现类似的功能,静态联编gcc依赖库后大约为1M左右,也不小。参见 github.com/lazy-luo/smarGate,如果静态编译openssl大小会增大到2M+
Author
Owner

@Yrr0r commented on GitHub (Nov 23, 2019):

用upx压一下的话,体积可以缩小将近一半,不过upx适用平台有限。
如果能手动裁剪功能的话,不知道体积可不可以小一点。
但是体积最小的应该还是用C/C++重构。毕竟ss-libev也就差不多1MB大,而去掉web和其他所有功能只留tcp的话应该也可以很小。

<!-- gh-comment-id:557811799 --> @Yrr0r commented on GitHub (Nov 23, 2019): 用upx压一下的话,体积可以缩小将近一半,不过upx适用平台有限。 如果能手动裁剪功能的话,不知道体积可不可以小一点。 但是体积最小的应该还是用C/C++重构。毕竟ss-libev也就差不多1MB大,而去掉web和其他所有功能只留tcp的话应该也可以很小。
Author
Owner

@ntgeralt commented on GitHub (Dec 17, 2019):

的确,只需要在便携路由穿透22和80,想找一款理想的最轻便的版本

<!-- gh-comment-id:566390729 --> @ntgeralt commented on GitHub (Dec 17, 2019): 的确,只需要在便携路由穿透22和80,想找一款理想的最轻便的版本
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1176
No description provided.