[TYPO3-core] RFC: #8515: Speed up tslib_cObj->getTreeList by caching its results
Ingo Renner
ingo at typo3.org
Fri Jul 11 18:22:28 CEST 2008
Dmitry Dulepov [typo3] wrote:
Hi Dmitry,
> Firsts, there are "TRUE", "foreach(" and "if(" that should be "true",
> "foreach (" and "if (". I know I am too pedantic but still...
yeah that was when I thought we agreed on TRUE and I was still in my
habit of leaving out the space, no big deal.
> Next, code can be optimized near line 69 of the patch:
>
> --------------
> foreach($additionalTreelistUpdateFields as
> $additionalTreelistUpdateField) {
> $this->updateRequiringFields[] = $additionalTreelistUpdateField;
> }
> --------------
>
> can be
>
> --------------
> $this->updateRequiringFields += $additionalTreelistUpdateFields;
> --------------
>
> or even without $additionalTreelistUpdateFields, just trimExplode...
will check it out.
> Next, we know that md5hash is always 32 chars. Should varchar be changed
> to char? That makes easier for MySQL to build index because length is
> fixed all the time. Engine is InnoDB, thanks a lot for this :)
sure, sounds good.
>
> Patch looks good to me. Code is very clean (I am truly impressed by your
> coding!). I did not run it but I trust you did and snowflakes (Stucki)
> did, so I am willing to give +1 by review if you consider the things
> above. They are not mandatory but I think they can make this feature a
> bit more effective.
thanks a lot!
Ingo
--
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2
More information about the TYPO3-team-core
mailing list