You're doing a lot of stuff line by line when you read files, but that shouldn't really matter for 300 lines (unless the lines are really long, I suppose.)
However, you're also pulling in and displaying the header file, plus telling the browser to pull in three separate CSS files. How big are all those files?
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In reply to Re: Poor Performance
by xdg
in thread Poor Performance
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |