Skip to content

Find a solution to binary size #36

@Edouard-chin

Description

@Edouard-chin

On linux, the resulting binaries are big. For instance the precompiled json gem is around 7MB big. This includes all the binaries that compose the fat gem. The reason its big is because of debugging symbols.
By stripping them LDDFLAGS="-s" we reduce the size of the gem to around 800KB.

That's what rake-compiler-dock do by default. However, stripping debugging symbols make it painful for gem maintainers to investigate a problem when a crash happens on a user machine and they a bug report.

Is it possible to reduce the size of the binaries without stripping debugging symbols ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions