Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

Binary size too big! #3

Description

@ncw

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions