Reducing Lego Size | 节省 Lego 的尺寸 #1033
0xJacky
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
在 291c7f0 中,我们重构了
lego
中部分使用了的大型 SDK 的 DNS Providers 为原生的 HTTP 请求。以
linux-amd64
的二进制为例,最终的编译产物体积由原先的 164.5MB 节省到了 74.8MB (~55%)目前重构的 DNS Providers 有:
目前我们的工作项目在:nginxui/lego,这是从 go-acme/lego 中 fork 出来的分支,我们希望有一天可以将这项改动 PR 回原项目。
In 291c7f0, we refactored the DNS Providers that were partially utilized in
lego
to use native HTTP requests instead.For the linux-amd64 binary, the final compiled product size was reduced from 164.5MB to 74.8MB (~55%).
The DNS Providers that have been refactored so far include:
Our current work project is available at: https://github.com/nginxui/lego, which is a forked branch from go-acme/lego. We hope to eventually PR this change back to the original project.
Beta Was this translation helpful? Give feedback.
All reactions