[Typo3] Make Typo3 faster?
Chi Hoang
chibo at gmx.de
Tue Nov 29 21:54:04 CET 2005
Bernhard Kraft schrieb:
> If you are interested in experimenting to make T3 faster you could try
> my patches for t3lib_parsehtml at:
>
> http://bugs.typo3.org/view.php?id=1685
> preg_t3lib_parsehtml.diff
>
> It replaces all calls to the regular ereg and split(i) functions in t3lib
> parsehtml by the far more faster preg_ equivalents.
>
> If you download the testsuite and let the testprograms run you will notice
> that some methods only need 8% (!!!) of the time required before !
Hi Bernhard,
there is another optimization possible in while loops based on old php 3.
i have seen such constructs like this
while (list($key,$val) = each($array)) {
...
}
in typo3 which could be easily changed to
foreach ($array as $key => $value) {
...
}
that should be faster (less instructions involved) and is more straight
forward coding style.
Greets,
Chi
More information about the TYPO3-english
mailing list