On Sun, 23 Feb 2003, Stanislav Malyshev wrote:

> RL>> So, obviously these opens don't really affect the module version
> RL>> since they only happen on startup, but they still don't seem right.
> RL>> I understand ./php-cgi.ini, but .//php-cgi.ini and .//php.ini?
> RL>> Looks like a missing check there.
>
> If this is only for CGI/startup, it is indeed not so important, IMHO.
> After all, CGI is not a performance-star anyway.

True, but that doesn't mean we should be doing stupid things like trying
to open the same file twice or calling realpath() twice on the same path.
And obviously something similar is happening to the module case because we
are 10-15% slower in the module version.

> Either increased memory usage or substantial change in memory usage
> pattern (e.g., allocation of one big object, than freeing and allocation a
> number of small objects with the same size should generate less brk's then
> allocating small ones first and then large one).

The script I tested was simply:

  <html>
  <body>
  <?
      echo "Hello World";
  ?>
  </body>
  </html>

Hopefully executing this should not have caused a big change in memory
usage between 4.2 and 4.3.

-Rasmus

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to