[TYPO3-core] RFC #9657: Instantiate time tracker as null object if not really required

Steffen Gebert steffen at steffen-gebert.de
Mon Aug 31 18:22:24 CEST 2009


Hi Rupert,

On Mon, 31 Aug 2009 17:43:08 +0200, Rupert Germann <rupi at gmx.li> wrote:

> Problem:
> In the TYPO3 front-end an instance of t3lib_timeTrack is created in the
> variable $TT. During the front-end rendering process the time required
> to parse and execute several scripts and modules is stored using this
> object. When there's no be_user logged in this information is never used
> and so timetracking only eats up precious performance.
>
> Solution:
> Use a null object with empty methods in general and only use the current
> time tracker if a logged in be_user views pages in the front-end.

Thanks for this patch - although I couldn't measure a real improvement in  
my (not so optimized) environment.

> * @author	Ingo Renner <ingo at typo3.org>
Are you the author of the null-class or Ingo?

+1 by reading and testing.

Steffen


More information about the TYPO3-team-core mailing list