Skip to content

Compress release Vector binaries with UPX #1797

@ghost

Description

UPX is a compression program for executables which allows them to be compressed with subsequent decompression at runtime.

It can be used to compress Vector release binaries in order to reduce amount of space Vector occupies when placed on the target system. It is worth to note that it would not reduce size of Vector archives (and potentially might even slightly increase them).

Some questions which have to be addressed before we can proceed on it:

  • Is decompression at runtime slows down Vector start up times significantly? I think it shouldn't, when I tried it on Vector the start up time was less than half a second. But it is worth to ensure that it is acceptable to us.
  • (More important) Some malware detection tools can possibly mark all executables compressed by UPX as suspicious because they can consider them to be deliberately obfuscated, although UPX should be widespread enough nowadays (it is present in Debian and Ubuntu repositories, for example) to be explicitly supported by most of such tools. However, it is something which requires investigation/discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain: ciAnything related to Vector's CI environmentdomain: releasingAnything related to releasing Vectorhave: niceThis feature is nice to have. It is low priority.meta: ideaAnything in the idea phase. Needs further discussion and consensus before work can begin.needs: approvalNeeds review & approval before work can begin.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions