Nice! Btw very useful with big libraries like yesod/lens: if statically linking, compile everything with `ghc -split-sections` and the linker will be able to leave out unused functions. Also, can run `strip` on binaries, sacrificing profiling/debugging to get smaller still.
-
-
-
Absolutely - running `strip` before `upx` does reduce the filesize even further! I'll put that in the post :) I read about `split-sections` before but it looked like it had undesirable effects on compilation time - is this still true?
- Još 2 druga odgovora
Novi razgovor -
-
-
Impressive results! This said, the fact that you did not remove any significant functionality from your app to obtain this reduction tells me that there is still a lot of work to be done on properly stripping executables of unused code. This should not manually be done by users.
-
Thanks! I agree with your last point. This post was written from a perspective of "Okay, so how much of this do I *really* need?" but it ended up being more of an indictment of the size of binaries under standard conditions ;)
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.