Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Binary is very large #31

Open
samhh opened this issue Aug 30, 2020 · 2 comments
Open

Binary is very large #31

samhh opened this issue Aug 30, 2020 · 2 comments

Comments

@samhh
Copy link
Owner

samhh commented Aug 30, 2020

Almost certainly could pass some flags to bring the size down, currently at ~28MB.

@samhh samhh added this to the 0.3.0 milestone Jun 29, 2021
@samhh
Copy link
Owner Author

samhh commented Jun 30, 2021

This made no difference somehow:

cabal build "$pkgname" -O2 --enable-executable-stripping --enable-library-stripping --enable-split-objs --enable-split-sections --ghc-options=-dynamic

strip makes no difference.

Notably it reduces down from 31M to 6.4M if it's run through upx. Relevant:

Measured with time, upx-compression appears to add ~50ms to the startup time on a beefy system.

🤷‍♂️

@samhh samhh removed this from the 0.3.0 milestone Jun 30, 2021
@samhh samhh changed the title AUR: Binary is very large Binary is very large Jun 30, 2021
@samhh
Copy link
Owner Author

samhh commented Jun 30, 2021

The GitHub release via CI produces a binary that's 53M. This can be reduced to 32M with strip.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant