Skip to content

Reduce binary size #147

@mappu

Description

@mappu

The ideas from #8 and #9 can also help to reduce binary size.

Ideas:

  • Use -ffunction-sections -fdata-sections in CFLAGS, and -Wl,--gc-sections in LDFLAGS to allow stronger dead code elimination across language boundaries
  • Attempt to build with gccgo
    • Some reports online that this can produce a significant size reduction (although with adding external dynamic dependencies)
  • Refactor marshaling code to call helper functions instead of inlining it in every function wrapper
  • Ability to disable unwanted Qt classes at compile time?
    • Maybe with a build tag
    • Similar idea to qtminimal
  • Ability to disable subclassing support for unneeded classes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions