[TYPO3-core] RFC: #13611: Replace calls to t3lib_div:: within t3lib_div to self:: du to performance reasons

Steffen Ritter info at rs-websystems.de
Wed Feb 24 18:29:21 CET 2010


Georg Ringer schrieb:
> Hey team,
> 
> this is a SVN patch request.
> 
> Type: bugfix
> 
> Branch: trunk, 4.3
> 
> BT reference: http://bugs.typo3.org/view.php?id=13611
> 
> Problem:
> Currently t3lib_div uses t3lib_div:: to refere to itself statically.
> 
> Self:: is 8% to 10% faster than using classname:: due to the fact that
> no scope resolution has to be performed.
> 
> See:
> http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/Zend/zend_API.c?view=markup
> [^]
> 
> Line(2154 to 2164).
> 
> Solution:
> Change all t3lib_div:: calls inside the t3lib_div:: to self::
> 
> Additional information:
> - Thanks to Nikolas Hagelstein, how did the performance test which can
> be found inside the bugtracker entry and who created the entry. Patch is
> by myself
> 
> - I know that this patch doesn't upply CGL because it makes it easier to
> review it and the whole file is a mess ;)
> 
> Georg
> 
+1 reading and testing


More information about the TYPO3-team-core mailing list