|Do you know where your variables are?|
suggested module/tools to automatically "tighten" my perlby abcperl5 (Initiate)
|on Jun 21, 2012 at 22:21 UTC||Need Help??|
abcperl5 has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, are there any recommended modules or tools by which I can shrink the absolute byte size of my Perl script, while retaining all the original functionality? Things like:
* strip comments
* strip unnecessary whitespace
* rename $very_long_variable to $x1
My goal is solely to improve the execution time of my very large codebase which runs as CGI (reparsed with each request). I wrote my own utility that stripped comments (which take up about 30% of my files) and I saw a very noticeable improvement. I want to take it to the next level.
The obsfucators I've found so far are more directed towards protecting copyright and they use techniques that may slow everything down.