On Wednesday, 4 December 2013 at 16:26:43 UTC, H. S. Teoh wrote:
On Wed, Dec 04, 2013 at 05:12:26PM +0100, bearophile wrote:
Puming:
[...]
>but a simple binary in vibe.d yields a ~12MB file,
>it's somewhat slow to upload it.
There are programs to compress binaries a lot.
Take a look at UPX: http://upx.sourceforge.net/
In my own projects, a typical D program is easily 5-10MB, or,
if it's
template-heavy, 15-20MB. But if I run 'strip' on the executable
and then
run 'upx' on it, I can quite easily get it down to less than
1MB.
You won't be able to debug it, of course, since there would be
no
symbols, etc., left, but if you're deploying it to your
production
server anyway, presumably you've already debugged it
beforehand, so this
shouldn't be a problem.
T
Thanks, I'll try that :)