Skip to content
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

Binary size too big! #3

Open
ncw opened this issue Aug 9, 2024 · 0 comments
Open

Binary size too big! #3

ncw opened this issue Aug 9, 2024 · 0 comments

Comments

@ncw
Copy link

ncw commented Aug 9, 2024

We use github.com/henrybear327/go-proton-api in the Proton drive backend for rclone.

I've just discovered in rclone/rclone#7998 that the protondrive backend is adding over 3.5MiB to the rclone binary! That is nearly 5% of the binary size. Most backends weigh in at about 200k - it is only the ones with big external SDKs that exceed 1MB and the protondrive is the second biggest after storj.

I suspect that this package is pulling in more things than it needs to which are making its way into the rclone binary.

I used https://github.com/Zxilly/go-size-analyzer to examine the rclone binary and it wasn't obvious where the extra code size was coming from.

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant