Page Execution Time
Posted: Thu Dec 08, 2005 10:40 am
I have 2 pages that do exactly the same thing.
1) one does all the work on the page navigated to - thepage.php
2) the other uses a class included on - thepage.php
both pages use very similarly-coded functions, I started with option 1 and used it as a basis to create page 2 and its class.
------
The execution times are as follows:
page 1) 0.04 seconds
page 2) 0.06 seconds
------
so page 2 is 33% slower, however, as it uses a class it is much easier to use throught the site. So i guess the question is, should I compromise page development time over page execution time?
thanks for your thoughts!
1) one does all the work on the page navigated to - thepage.php
2) the other uses a class included on - thepage.php
both pages use very similarly-coded functions, I started with option 1 and used it as a basis to create page 2 and its class.
------
The execution times are as follows:
page 1) 0.04 seconds
page 2) 0.06 seconds
------
so page 2 is 33% slower, however, as it uses a class it is much easier to use throught the site. So i guess the question is, should I compromise page development time over page execution time?
thanks for your thoughts!