-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gitea binary size #33023
Comments
So, what's your point? |
Still analyzing, updated the issue description. I do not mean "stop", but I think it's good for people to know the details. Something in my mind at the moment:
|
One more thing: it doesn't seem right to have
|
And one more thing, maybe we should use github.com/goccy/go-json to replace github.com/json-iterator/go , it doesn't make sense to use 2 json package here. But xorm still hard depends on github.com/json-iterator/go (which is unmaintained for 2 years) |
V1.22.4 is 90meg on alpine and v1.22.6 is 101meg on Gentoo so there is something in build options outside of actual build dependencies Alpine build with -O2 against musl while I am using clang with -O3 on Gentoo so the -Ox might explain the 10meg difference but not the 30-40meg from the prebuilt so yes debug is the most likely |
I will take a look at xorm side. |
To remove unnecessary dependency: Refactor fixture loading for testing #33024 |
There are two build flags of |
@techknowlogick -> Release build misses |
Now Much smaller than https://dl.gitea.com/gitea/1.23.0-rc0/ "Remove aws go sdk package dependency #33029" might still save about 1MB more. |
This PR removed the dependency of `github.com/aws/aws-sdk-go/aws` Patially fix for #33023
This PR removed the dependency of `github.com/aws/aws-sdk-go/aws` Patially fix for go-gitea#33023
Now: nightly size is 106.8 MiB Save bandwidth, save energy, save the Earth |
go-size-analyzer report: https://gist.github.com/wxiaoguang/3cf40614fd7f0a3ee0cc88bc82aa97e9
The major size increment for 1.23 comes from aws sdk and ClickHouse/ch-go. And it seems that the
debug_info
is not stripped?The text was updated successfully, but these errors were encountered: