You have too much code for us to look at. That's what profilers are for. See Devel::NYTprof and friends. Once you profile your code, you can then post a reasonably-sized snippet that's running slowly and get advice on it.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: This runs WAY too slow
by roboticus
in thread This runs WAY too slow
by Dandello
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |