Quote:
Originally Posted by ryanhellyer
That's a really useful thing to know, as I often assume basic, small scripts like that won't suck up too much resources, but obviously this is not the case here.
|
It's interesting looking through execution times for different scripts and servers. The length of the script isn't so much important as the complexity.
For example, there are some very bloated CMSs out there that take 10 seconds to generate a page, whereas a simple CMS like SilverStripe takes 0.01 seconds. Still, SilverStripe has a lot of code powering it, especially a lot of HTML.
This script isn't as small as it seems though - I don't show you the massive IP database that comes with it

It has thousands of records that this small script sifts through to match the location of the current user.