Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

optimizing exe with cava packager

by BingFarz (Novice)
on Aug 20, 2013 at 16:30 UTC ( #1050207=perlquestion: print w/ replies, xml ) Need Help??
BingFarz has asked for the wisdom of the Perl Monks concerning the following question:

Hi - and - Howdy also,

This could be a long one, I really don't expect an answer, however some suggestions might help.

I've developed several .exe files ( for windows ) and they are on github - along with source code - using cava packager. < github.Marc-Bellario > various...

I have not really tried to optimize this - but I'm pretty sure that it can be done. One way a least would be to remove modules manually until the application breaks.

I am wondering if there might be a more systematic approach than pick and play?

Also I should note that I have briefly tried other methods of creating .exe files and failed - cava packager being the only route that got me there.

Any comments or suggestions would be helpful - - even nastly and abrasive ones. Thanks - in advance ....

Weird that I can update this - I guess I could make comments individually but, fantastic replies - I am so impressed and especially that no one but commented about how I didn't know a darn thing or any thing like that Thank you all so much for your time with this...Anyway, very meaningful.

Comment on optimizing exe with cava packager
Re: optimizing exe with cava packager
by Random_Walk (Parson) on Aug 20, 2013 at 17:17 UTC
Re: optimizing exe with cava packager
by Laurent_R (Vicar) on Aug 20, 2013 at 17:41 UTC

    Do you really need to optimize it? Take a look at the code below.

    unless (it is broken) { don't fix it; }
Re: optimizing exe with cava packager
by SuicideJunkie (Priest) on Aug 20, 2013 at 19:18 UTC

    Based on the idea of removing modules from the overall package, I presume you're trying to optimize in terms of download size and/or hosting cost rather than speed.

    A good compression algorithm should help a lot. Zip is ubiquitous but pretty weak.

    Compressing plain text works better than compressing obfuscated or encrypted data. Check your build settings to see if you're making compression harder than it has to be.

    If the volume of downloads is low, minimizing the size isn't so important. If the volume of downloads is high, consider making a torrent out of your package.

Re: optimizing exe with cava packager (BingFarzPerl)
by Anonymous Monk on Aug 20, 2013 at 22:16 UTC

    You could create a BingFarzPerl?

    You pick/choose which modules to exclude using http://www.cavapackager.com/appdocs/projecttree-scan.htm

    You could also use scandeps.pl to cross/reference and make sure you're not missing any modules

    But don't count on saving much/if/any harddisk by excluding modules -- the dependency scans are pretty good , won't add extra files, might miss a dll here or there

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1050207]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (13)
As of 2014-07-31 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls