Replies: 2 comments 3 replies
-
Ah interesting...is the above example binary size change fixed by making the change above? I'm not against it. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Interesting. I knew using reflection causes slowness, but I didn't expect it would increase the binary size. Did you consider using go-size-analyzer made by @Zxilly (hi 👋) to follow the consequences of such changes BTW, @Zxilly did you ever face this? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Background: https://appliedgo.net/spotlight/reflection-binary-size/
Kong currently prevents DCE due to the reflection usage.
This is significant when writing CLIs that use SDKs like the AWS SDK:
Example program:
With a few hacks, it might be possible to enable DCE. I did not find and example for Provide, but if adapt the code to only allow a specific name like Provide() without a suffix, it should allow for DCE:
Beta Was this translation helpful? Give feedback.
All reactions