Have you considered offloading some of the more CPU intensive portions of the application to C? Please don't mod me down for this, but when your program has to a lot in a short amount of time, Perl is not generally the best solution.
"Never take yourself too seriously, because everyone knows that fat birds dont fly" -FLC