[TYPO3-core] RFC #11746: speed up function t3lib_BEfunc::isRecordLocked()

Oliver Klee typo3-german-02 at oliverklee.de
Wed Aug 19 13:19:53 CEST 2009


Hi,

Rupert Germann schrieb:
> can you explain this further? as far as I see we have only one nesting
> level.

Basically, it's like this:

Change from:

if (noSpecialCase()) {
  doLotsOfStuff();
  result = ...;
} else {
  result = shortBitOfCode();
}

return result;

To this:

if (specialCase()) {
  return shortBitOfCode();
}

doLotsOfStoff();
result = ...;

return result;


More information about the TYPO3-team-core mailing list