Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29189 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25582 invoked by uid 1010); 4 May 2007 19:33:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 25564 invoked from network); 4 May 2007 19:33:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2007 19:33:32 -0000 Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:2694] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/75-21644-88A8B364 for ; Fri, 04 May 2007 15:33:30 -0400 Received: (qmail 9169 invoked by uid 98); 4 May 2007 19:33:29 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/3204. Clear:RC:1(127.0.0.1):. Processed in 0.146706 secs); 04 May 2007 19:33:29 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 4 May 2007 19:33:29 -0000 Received: from 216.230.84.67 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Fri, 4 May 2007 14:33:29 -0500 (CDT) Message-ID: <54563.216.230.84.67.1178307209.squirrel@www.l-i-e.com> In-Reply-To: <7F0AE77B-C82D-4C9E-B48E-3BEEB7C13C94@prohost.org> References: <139872287.20070504170744@marcus-boerger.de> <9DC00D11-00A5-40DB-A397-8454C48FA448@prohost.org> <1525138013.20070504193205@marcus-boerger.de> <7F0AE77B-C82D-4C9E-B48E-3BEEB7C13C94@prohost.org> Date: Fri, 4 May 2007 14:33:29 -0500 (CDT) To: "Ilia Alshanetsky" Cc: "Marcus Boerger" , internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] [RFC] Starting 5.3 From: ceo@l-i-e.com ("Richard Lynch") On Fri, May 4, 2007 12:46 pm, Ilia Alshanetsky wrote: >>>> 2) Add open_filename debug info to streams >> >>> What would this mean for performance and memory usage of file ops? >> >> An additional malloc and strcpy on opening and an additional free >> on closing. We could however limit actual use to --enable-debug >> builds. > > My preference we enable this feature only for debug builds. There might be users for whom debug info in production is way more important than raw performance... I dunno how expensive (malloc + strcopy + free) is, but it doesn't seem to this naive reader like it's going to swamp a server, if somebody who knows what they are doing wants that on even in production. I could easily be under-estimating the expense, but it just seems like there's a lot more PHP scripts that need a lot more better debugging code more than they need raw performance. I'm not claiming that having this available will stop any idiots from writing bad code, but it might help a couple smart folks write better code. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?