mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1489] FRPC的体积问题 #1176
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1176
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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类型支持,客户端程序的体积应该可以缩小相当多~
@TigerBeanst commented on GitHub (Oct 30, 2019):
@qiang-yu commented on GitHub (Oct 31, 2019):
go 开发的程序都是这么大的,没办法,除非你自己用 C重写一个
@Xeath commented on GitHub (Nov 3, 2019):
好想 Go 编译后就是这么大吧……
@lazy-luo commented on GitHub (Nov 6, 2019):
c++实现类似的功能,静态联编gcc依赖库后大约为1M左右,也不小。参见 github.com/lazy-luo/smarGate,如果静态编译openssl大小会增大到2M+
@Yrr0r commented on GitHub (Nov 23, 2019):
用upx压一下的话,体积可以缩小将近一半,不过upx适用平台有限。
如果能手动裁剪功能的话,不知道体积可不可以小一点。
但是体积最小的应该还是用C/C++重构。毕竟ss-libev也就差不多1MB大,而去掉web和其他所有功能只留tcp的话应该也可以很小。
@ntgeralt commented on GitHub (Dec 17, 2019):
的确,只需要在便携路由穿透22和80,想找一款理想的最轻便的版本