At one time an employer was using a standard Perl package to do stuff driven from a CGI web page. I re-configured the package, and modified one component so that instead of performance a linear search for each request, it simply cached requests and performed one batch job each midnight. Not surprisingly, going from interactive to batch scaled performance by around 30X.
--
TTTATCGGTCGTTATATAGATGTTTGCA