Extending a single page management script
Moderator: General Moderators
-
Mobius Man
- Forum Newbie
- Posts: 8
- Joined: Mon Dec 15, 2003 8:16 pm
In one program I noticed a huge jump in speed when I changed from a switch/case method to includes. Some simple scripting I'd done when I started out with php was replaced with a full-blown OOP front controller. On the first run I was dreading to see how badly some more complex code would affect the performance but in fact it was much faster despite all the OOP & extras. Best explanation I could find was that a lengthy switch/case in the original code had been holding things up. Shorter switch/cases probably aren't an issue though.Sami wrote:lol There is nothing wrong with what he uses, I use the exact same thing. And on most servers I've tested the different page switchers, the difference in script execution is not even a hundredth of a second; so no biggie.