Oh my god. It is so damn fast now! Screw PHP (umm. . . joke).

With persistent DBI connections and Apache::Registry as the handler, i've gone from 6 
pages a second under mod_cgi, to 20 pages a second under Apache::PerlRun to 160 pages 
a second under Apache::Registry.

Damn.

Glad I figured it out. The problem was that I was declaring variables outside of 
subroutines with my(), and not as globals with var. I had it stuck in my head that if 
I developed under strict that I'd be fine. (thanks PerlMonks.com! I guess I wasn't 
searching for the right stuff. . .)

I also re-initialized the variables to "" to be safe.

One of these two changes worked.

-DJCP

Reply via email to