[TYPO3-core] Taming the Performance in 6.2

Christian Weiske christian.weiske at netresearch.de
Thu Nov 7 10:26:41 CET 2013

Hello Mathias,

> try {
>   @include $rootPath.doSomeStringStuffHere.php
> } catch Exception
> The only thing that bothers me is the error
> suppression, I am not really sure if we need this. But suppressing
> the error is cheaper than having a FS call IF Notices and Warnings
> are disabled in PHP.ini

Using @ before require/include leads to headaches, e.g. when there are
syntax errors in your code. If you have to include the file, a stat
call has to be made in every case. If you do it beforehand with
file_exists() does not matter, since your OS has a stat cache anyway.

Regards/Mit freundlichen Grüßen
Christian Weiske

-= Geeking around in the name of science since 1982 =-

More information about the TYPO3-team-core mailing list