Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36523 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11598 invoked from network); 25 Mar 2008 21:47:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2008 21:47:47 -0000 Authentication-Results: pb1.pair.com header.from=thetaphi@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=thetaphi@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 80.190.230.99 as permitted sender) X-PHP-List-Original-Sender: thetaphi@php.net X-Host-Fingerprint: 80.190.230.99 www.troja.net Linux 2.5 (sometimes 2.4) (4) Received: from [80.190.230.99] ([80.190.230.99:56233] helo=mail.troja.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/40-28012-20379E74 for ; Tue, 25 Mar 2008 16:47:47 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id 3705F445E4; Tue, 25 Mar 2008 22:47:44 +0100 (CET) Received: from mail.troja.net ([127.0.0.1]) by localhost (cyca.troja.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31416-08; Tue, 25 Mar 2008 22:47:42 +0100 (CET) Received: from VEGA (port-83-236-62-51.dynamic.qsc.de [83.236.62.51]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTP id D7748445D7; Tue, 25 Mar 2008 22:47:41 +0100 (CET) To: "'George Wang'" , "'Uwe Schindler'" Cc: , References: <47E80EB9.60900@litespeedtech.com> <698DE66518E7CA45812BD18E807866CE0165A861@us-ex1.zend.net> <20080325100552.00o51usgg04oogw0@mail.litespeedtech.com> <47E93244.4060001@litespeedtech.com> <000001c88eb0$80dbdce0$a401a8c0@VEGA> <47E958C0.9060407@sci.fi> <000001c88eb4$bd4a74d0$a401a8c0@VEGA> <47E966DF.2090302@litespeedtech.com> Date: Tue, 25 Mar 2008 22:47:42 +0100 Message-ID: <000401c88ec1$dabef880$a401a8c0@VEGA> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <47E966DF.2090302@litespeedtech.com> Thread-Index: AciOuq29jFhAppvEROWj9EiNbOmmWwAASkRg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Scanned: amavisd-new at troja.net Subject: RE: [PHP-DEV] Inclusion of PHP LiteSpeed SAPI in the standard PHP distribution? From: thetaphi@php.net ("Uwe Schindler") > > 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