Binary in .deb package is around twice the size of binary in .zip #1330

Closed
opened 2022-12-02 10:26:59 +00:00 by BCMM · 3 comments

Although they seem to be equal in functionality, the binary from the Debian package is around twice as large as the binary in the zip file. I do not know enough about building Go software to investigate why this is, but only part of the difference is accounted for by simply stripping the binary.

Although they seem to be equal in functionality, the binary from the Debian package is around twice as large as the binary in the zip file. I do not know enough about building Go software to investigate why this is, but only *part* of the difference is accounted for by simply stripping the binary.
Owner

Resolved in 51cf8beaed

The release binaries are compressed to reduce their file size. I've changed the CI step to use the compressed binaries instead of the non-compressed ones.

Resolved in https://kolaente.dev/vikunja/api/commit/51cf8beaedfcf693acbcef8440de2d2272ce1c2e The release binaries are compressed to reduce their file size. I've changed the CI step to use the compressed binaries instead of the non-compressed ones.
Author

Out of curiousity, what sort of runtime cost does this compression entail? Is it just a one-time thing at process creation?

Out of curiousity, what sort of runtime cost does this compression entail? Is it just a one-time thing at process creation?
Owner

It's pretty much unnoticable. We're using UPX which says it can do ~500MB/s - the binary should decompress in < 1s. As far as I know it decompresses the binary when starting it and it then runs as it would uncompressed.

It's pretty much unnoticable. We're using [UPX](https://upx.github.io/) which says it can do ~500MB/s - the binary should decompress in < 1s. As far as I know it decompresses the binary when starting it and it then runs as it would uncompressed.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1330
No description provided.