Skip to content

Instantly share code, notes, and snippets.

@maxwell
Created May 3, 2012 21:22
Show Gist options
  • Save maxwell/2589620 to your computer and use it in GitHub Desktop.
Save maxwell/2589620 to your computer and use it in GitHub Desktop.
maxwell: silly question: would a static linux build reduce the phantomjs /bin + /lib file size?
[1:56pm] maxwell: I am trying to package different binaries into gems
[1:56pm] maxwell: for heroku, but it seems the linux version increases my slug size by 50megs
[2:20pm] kanzure: kenperkins: --web-security=no should be for XSS not local POSTs
[2:21pm] kanzure: maxwell: err don't you mean "would a dynamically linked library decrease the size?" because statically linked is almost always larger
[2:21pm] maxwell: yeah, that was my understanding as well
[2:21pm] maxwell: but looking at the mac bin and lib
[2:21pm] maxwell: its about 10mb
[2:21pm] maxwell: but for the linux bin and lib
[2:21pm] maxwell: its like 35
[2:21pm] maxwell: *45
[2:21pm] kanzure: that's fascinating.. i would start by looking at the build scripts and comparing them
[2:22pm] kanzure: is that the mac binary that you build through homebrew, or the distributed one for the v1.5 releas?
[2:22pm] kanzure: *release
[2:22pm] maxwell: the one from phantom.js google code
[2:22pm] kanzure: i am working on a port of pyphantomjs to ruby
[2:22pm] maxwell: cool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment