PHP optimization

src: http://us3.php.net/manual/en/function.include.php
If you're doing a lot of dynamic/computed includes (>100, say), then you may well want to know this performance comparison: if the target file doesn't exist, then an @include() is *ten* *times* *slower* than prefixing it with a file_exists() check. (This will be important if the file will only occasionally exist - e.g. a dev environment has it, but a prod one doesn't.)

---------------------------------------------------


Популярные сообщения из этого блога

ubuntu 12.04 LTS install apache2.4 and php 5.6 and setup vhost

установка nginx + PHP5 + phpDaemon и настройка виртуальных хостов на nginx на Ubuntu 13.10

сказ о том, как я kafka и Spring поднимал и тестил