[TYPO3-core] RFC #14674: Replace calls to t3lib_extMgm:: within t3lib_extMgm to self:: due to performance reasons

Steffen Kamper info at sk-typo3.de
Wed Jun 9 23:06:27 CEST 2010


Hi,

Jigal van Hemert schrieb:
> Sebastian Michaelsen wrote:
>> As we have done it with t3lib_div, t3lib_extMgm should also call its 
>> own static methods via self:: which is faster.
> 
> A pretty useless operation because the speed difference is so small. On 
> different servers it was 0.2-0.5 microsecond faster per call...
> 
> But hey, it's not slowing things down, so
> +1 by reading.
> 

it has more advantages:
* it's faster (no matter how much)
* it's easier for reading: Ah it's $this-> / self:: so same class
* it's shorter, so it shortens the file (and the lines) :)
* it remembers you by reading that you're in a static class/function

vg Steffen


More information about the TYPO3-team-core mailing list