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

Sebastian Michaelsen sebastiangebhard at hoch2.de
Wed Jun 9 18:13:36 CEST 2010


I found 3 more occurences of t3lib_div::

Am 22.02.10 20:12, schrieb Georg Ringer:
> 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: 13611_followup1.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100609/b66a562a/attachment.asc>


More information about the TYPO3-team-core mailing list