[TYPO3-project-4-3] Status of autoloader

Oliver Hader oliver at typo3.org
Fri Jun 12 09:39:26 CEST 2009


Hi Rupert,

Rupert Germann schrieb:
> Martin Kutschker wrote:
>> An XLASS-File includes by definition only one class (or classes) but
>> never code that has to be exectuted in the global space.
>>
>> The current way to include a class file because it MIGHT include an
>> XCLASS is wrong. All real XCLASS-Files are register in
>> ext_localconf.php. This information has to (should) be used.
> 
> Full ACK.
> I made a short speed test with a hacked autoload function. I added a
> condition that checks if the classname starts with ux_ and if so if it is
> registered in $GLOBALS['TYPO3_CONF_VARS']['BE']['XCLASS'] or in FE xclasses
> If that is not the case further autoloading will be skipped.
> 
> results for siege requesting cached pages:
> trunk: 220 req/sec
> hacked: 240 req/sec
> 
> I see some optmizing potential here ;-)

ACK. It was fixed in between in Trunk - thanks for voting! ;)

> btw: in the same scenario TYPO3 4.2.7 delivers 287 req/sec

Hm, did you test it with e.g. 4.3-alpha2 (any version before the
autoloader was integrated)? I guess it was much slower at that time...

However, 287 vs. 240 requests is not good! A caching framework issue?

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-project-4-3 mailing list