is a great way to throw in just a little bit of C code. If
finds that there are a few routines using up most of your time, this makes it easy to rewrite just those routines in C while keeping the rest in Perl. But to get the tenfold speed you're looking for, you'll almost certainly need algorithm changes (such as using indexes), not just simple optimizations like these.