RE: [PHP-DEV] Inclusion of PHP LiteSpeed SAPI in the standard PHP distribution?
| From: | Uwe Schindler | Date: | Tue, 25 Mar 2008 21:47:42 +0000 |
| Subject: | RE: [PHP-DEV] Inclusion of PHP LiteSpeed SAPI in the standard PHP distribution? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36523@lists.php.net to get a copy of this message | ||
> > but it may also be possible to do all this in the request startup I
> think...?
> >
> I don't like the idea to keep adding stuff in request startup, at least,
> please make it optional. The overhead for request startup and cleanup
> have becoming higher and higher, which make PHP become slower and
> slower, especially for simple request like a "Hello World" request, it
> put PHP into a less competitive position when benchmark with other
> scripting languages.
>
> I wish I could do something in that regarding in the future, at least
> for our LiteSpeed SAPI if others does not like it.
The code in CGI is called in sapi_activate, which is called from
php_request_startup() just before the scripts starts. In this stage you can
choose the right config (e.g. from the cache) by using the script directory
as entry in has table or something like that. You do not need to search for
config files in a whole directory tree below DOCUMENT_ROOT and the script
directory every time.
Uwe