Turn on strictures and warnings and then make sure all of the vars used are lexicals. Furthermore avoid multiple derefs when possible. Just from switching away from using package vars you should see a noticable speedup.
In reply to Re: Sloooooow algo in Perl
by demerphq
in thread Sloooooow algo in Perl
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |