[TYPO3-english] CObject getTypoLink() is slow

Jan Bednarik info at bednarik.org
Mon Jul 16 11:59:17 CEST 2012


Hey,

 > So, I'm trying to speedup a little my project and I found that in some
> cases my pages take up to 2 seconds more when I use the function
> getTypoLink() to resolve human-friendly links. I have realurl and
> languagevisibility modules installed, so I use getTypoLink() because it
> resolves everything, the href, the title after the languagevisibility
> fallback logic.

maybe it's not about the typolink.

> $cObj = t3lib_div::makeInstance('tslib_cObj');
> $cObj->start(array(),'');

I think this can be the problem.

In any PI extension, you already have tslib_cObj available. Just use 
$this->cObj and that's it. No need to initialize it over and over again.

Jan


More information about the TYPO3-english mailing list