Edit report at https://bugs.php.net/bug.php?id=62529&edit=1

 ID:                 62529
 Updated by:         johan...@php.net
 Reported by:        mahan dot mp at live dot com
 Summary:            Static Methods are Slower than Object Defined
                     Methods
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            Performance problem
 Operating System:   Windows
 PHP Version:        5.3.15RC1
-Assigned To:        
+Assigned To:        johannes
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

There were many optimizations in 5.4 which help there. On my system I got 

Static call time: 0.053794145584106 ms
Object method call time: 0.063946008682251 ms
Static call (when the static is in the same class of object method) time: 
0.063071966171265 ms

In general I would say that more people use dynamic calls so optimizations 
there are more relevant to overall performance.


Previous Comments:
------------------------------------------------------------------------
[2012-07-11 09:10:53] mahan dot mp at live dot com

Description:
------------
Static methods are slower than Object Defined methods

Test script:
---------------
http://www.vanylla.it/tests/static-method-vs-object.php



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62529&edit=1

Reply via email to