Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23184 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48380 invoked by uid 1010); 7 May 2006 15:54:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 48364 invoked from network); 7 May 2006 15:54:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 May 2006 15:54:42 -0000 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 64.233.166.183 py-out-1112.google.com Linux 2.4/2.6 Received: from ([64.233.166.183:16107] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id B6/35-63443-2481E544 for ; Sun, 07 May 2006 11:54:42 -0400 Received: by py-out-1112.google.com with SMTP id z59so1289150pyg for ; Sun, 07 May 2006 08:54:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=m5t34DUDPcdVWoOAeu5WVJfKkGEh/pCTUH3PoVA9TWgBzBdj4wPn+HQ+Az9wtMJmnSC8UT7gsQvW+uUP7gM6fV6LZpuiX81QAiOfDhaEmx3hxfK/iWxIFwsHKDGJ2hp/xpHtrpv3j11vgcKCnHhTvx8IoF9BhN7nhicduNpWOn8= Received: by 10.35.91.10 with SMTP id t10mr1625127pyl; Sun, 07 May 2006 08:54:38 -0700 (PDT) Received: by 10.35.69.2 with HTTP; Sun, 7 May 2006 08:54:38 -0700 (PDT) Message-ID: Date: Sun, 7 May 2006 17:54:38 +0200 To: "Ilia Alshanetsky" Cc: "Rasmus Lerdorf" , "internals Mailing List" , "Derick Rethans" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6E5468C5-630C-48B8-A501-6FC874651D01@prohost.org> <445D8156.8090701@lerdorf.com> <506DE35B-1925-4DA7-8F9F-F23F7D77EE87@prohost.org> <445E0BEF.1080403@lerdorf.com> Subject: Re: [PHP-DEV] PHP 5.2 Branched From: pierre.php@gmail.com (Pierre) Hello, On 5/7/06, Ilia Alshanetsky wrote: > What impact would it have on the speed of input processing if it is > always there, but not doing anything? I'd prefer to avoid adding > extra overhead for something that does nothing by default, we have > enough performance issues as is in 5.X. Pierre and Derick are telling > me that if the RAW filter is enabled it won't touch the data so > perhaps that's the route we should take, but I'd definitely like to > see before & after benchmarks. The current code calls the sapi filter, no matter if the filter is set to UNSAFE_RAW (data unchanged) or not. I already tested an alternative solution. It is possible to do not register the sapi filter and use PG(http_globals)[...] directly in input_get (and input_get_args). Doing so will minimize any possible performance impact. --Pierre