PHP optimization

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.)


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

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

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

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