[TYPO3-project-4-3] autoloader using SPL
Ingo Renner
ingo at typo3.org
Mon Aug 4 13:55:23 CEST 2008
Ingo Renner wrote:
>>> In addition __autoload()
>>> might (have to) keep track of which classes are loaded already.
>>
>> Why? require_once() does that already.
>
> Yes it does (or at least should), but I remember having read somewhere
> that it still does read the file even though it has been loaded before.
> Quite stupid actually.
ok, found some reference:
http://ilia.ws/files/phptek2007_performance.pdf
what we also should consider when implementing autoloading is always
including using absolute paths:
http://drupal.org/node/259623
(also mentioned in the slides above)
Ingo
--
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2
More information about the TYPO3-project-4-3
mailing list