News for hackers. Stuff that matters.
Re:Taking PHP Seriously by bartl on Friday October 14, 2016 @06:48AM (#12707229)
"fork" is not a major problem in PHP. In Drupal, every single request compiles a file "common.inc", of several thousands of lines of PHP code. That is what slows it down. It's remarkable that PHP still manages to do that in just 100ms.

In Zend Framework it's slightly better because it includes an autoload option, which implies only PHP files that are actually used by athe request, get loaded. That way the overhead is "only" 50ms.

Re:Taking PHP Seriously by ransom1538 on Friday October 14, 2016 @10:43AM (#12708378)
Wow. Is this comment from 2003? Uh. Why don't turn on opcache [1]? PHP7 is fast. Real fast [2].

http://php.net/manual/en/intro.opcache.php

https://blog.famzah.net/2016/02/09/cpp-vs-python-vs-perl-vs-...

Re:Taking PHP Seriously by igouy on Tuesday October 18, 2016 @04:21PM (#12738285)
> PHP7 is fast. Real fast [2]. <

You need a lot more than a "Sieve of Eratosthenes" code snippet to back that up :-)

Re:Taking PHP Seriously by raarts on Friday October 14, 2016 @10:10AM (#12708157)
> In Drupal, every single request compiles a file "common.inc", of several thousands of lines of PHP code.

This only proves Drupal is slow.