[TYPO3-core] RFC: #13611: Replace calls to t3lib_div:: within t3lib_div to self:: du to performance reasons
Georg Ringer
mail at ringerge.org
Mon Feb 22 20:12:55 CET 2010
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: t3lib_div-self.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100222/436d2c41/attachment.asc>
More information about the TYPO3-team-core
mailing list