Remove date('Y') call in layout
authorEvan Coury <me@evancoury.com>
Wed, 29 Feb 2012 14:36:47 +0000 (07:36 -0700)
committerEvan Coury <me@evancoury.com>
Wed, 29 Feb 2012 14:36:47 +0000 (07:36 -0700)
Replaced with static year. For some reason the date() function in PHP is
shockingly slow (3+ms on an i5) which is like 8% of the runtime in an optimized
benchmark.

module/Application/view/layout/layout.phtml

index 1831fbb..622c108 100644 (file)
@@ -63,7 +63,7 @@ echo $this->doctype();
       <hr>
 
       <footer>
-        <p>&copy; 2006 - <?php echo date('Y') ?> by Zend Technologies Ltd. All rights reserved.</p>
+        <p>&copy; 2006 - 2012 by Zend Technologies Ltd. All rights reserved.</p>
       </footer>
 
     </div> <!-- /container -->