[Typo3-dev] TYPO3 3.7.0 memory usage ?

Martin T. Kutschker Martin.no5pam.Kutschker at blackbox.n0spam.net
Thu Sep 16 16:35:35 CEST 2004


Michael Stucki wrote:
> Hi Sylvain,
> 
> 
>>Can be 3.7.0 more memory consuming than previous version ?
>>
>>My server report a:
>>
>>Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to
>>allocate 40 bytes) in
>>/home/www/typo3/typo3_src-3.7.0-dev/t3lib/class.t3lib_div.php
>>on line 1822
> 
> Yes, you're right. Kasper is aware of this and tries to find a solution for
> that problem:

I suggest to stop doing repeated string concatenations and passing 
around big junks of output in $content, etc.

Another big win would IHMO to use array references rather than copies.

I've seen code in the EM where a part of an assoc is passed (as value) 
to an subroutine just to replace the original value within the array. 
IMHO waste of CPU cycles on an unnecessary copy plus waste of memory.

I fear the whole TCA stiff is written like the TCA. It'd be a PITA to 
change all relevant code - without breaking something where a copy is 
actually required.

> But hold on, I'm sure there's a solution for this...

I wish I could hope like you. New features need more power, and now that 
Typo3 uses XML internally...

Masi




More information about the TYPO3-dev mailing list