Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33867 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29252 invoked by uid 1010); 8 Dec 2007 19:05:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29237 invoked from network); 8 Dec 2007 19:05:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2007 19:05:13 -0000 Authentication-Results: pb1.pair.com header.from=andi@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=andi@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:52047] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/28-51488-6EAEA574 for ; Sat, 08 Dec 2007 14:05:12 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 8 Dec 2007 21:05:07 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable x-cr-hashedpuzzle: A0L0 ChOI Gktr JkHg PpTb Pps2 YVJZ cnt3 mcFz nFe8 vyzv 4zSx 7neU /pQ/ AAhHkA== AC1MRg==;7;YwBlAG8AQABsAC0AaQAtAGUALgBjAG8AbQA7AGkAbABpAGEAQABwAHIAbwBoAG8AcwB0AC4AbwByAGcAOwBpAG4AdABlAHIAbgBhAGwAcwBAAGwAaQBzAHQAcwAuAHAAaABwAC4AbgBlAHQAOwBqAHUAZABhAHMALgBpAHMAYwBhAHIAaQBvAHQAZQBAAGcAbQBhAGkAbAAuAGMAbwBtADsAcgBhAHMAbQB1AHMAQABsAGUAcgBkAG8AcgBmAC4AYwBvAG0AOwBzAGMAbwB0AHQALgBtAGMAbgBhAHUAZwBoAHQAQABzAHkAbgBlAHIAZwB5ADgALgBjAG8AbQA7AHQAbwBuAHkAQABkAGEAeQBsAGUAcwBzAGQAYQB5AC4AbwByAGcA;Sosha1_v1;7;{E3C1329E-42BB-48EC-8BE5-9B87A561D6D6};YQBuAGQAaQBAAHoAZQBuAGQALgBjAG8AbQA=;Sat, 08 Dec 2007 19:04:40 GMT;UgBFADoAIABbAFAASABQAC0ARABFAFYAXQAgAEcAYQByAGIAYQBnAGUAIABjAG8AbABsAGUAYwB0AG8AcgAgAHAAYQB0AGMAaAA= X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message Date: Sat, 8 Dec 2007 11:04:40 -0800 x-cr-puzzleid: {E3C1329E-42BB-48EC-8BE5-9B87A561D6D6} Message-ID: <698DE66518E7CA45812BD18E807866CE0100C741@us-ex1.zend.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] Garbage collector patch Thread-Index: Acg5wKLGG1y/d9WlROGd9qdRrlmphwADFATg References: <698DE66518E7CA45812BD18E807866CEF88FDD@us-ex1.zend.net> <7d5a202f0712031900i386f8964s675da26cc93af3fe@mail.gmail.com> <47550FAB.30002@daylessday.org> <698DE66518E7CA45812BD18E807866CEF890ED@us-ex1.zend.net> <475578BE.40908@daylessday.org> <4755A797.1020905@lerdorf.com> <009001c836ae$4ba0add0$e2e20970$@mcnaught@synergy8.com> <4755B310.9070603@lerdorf.com> <4755B55A.1030708@zend.com> <4755B61A.2000803@lerdorf.com> <50921.98.193.37.55.1197080740.squirrel@www.l-i-e.com> To: "Ilia Alshanetsky" , Cc: "Rasmus Lerdorf" , "Stas Malyshev" , , "Antony Dovgal" , "Cristian Rodriguez" , X-OriginalArrivalTime: 08 Dec 2007 19:05:07.0430 (UTC) FILETIME=[3F5E9060:01C839CD] Subject: RE: [PHP-DEV] Garbage collector patch From: andi@zend.com ("Andi Gutmans") Hi Ilia, I suggest more people test the performance difference because as you can see for us it was negligible. From my experience you see bigger deviations just by moving kernels, compilers, and even small patches which affect where in memory the code segments sit, etc... Maybe some people here who have performance harnesses (I'm sure Yahoo! has one) could test it too. Andi > -----Original Message----- > From: Ilia Alshanetsky [mailto:ilia@prohost.org] > Sent: Saturday, December 08, 2007 9:35 AM > To: ceo@l-i-e.com > Cc: Rasmus Lerdorf; Stas Malyshev; scott.mcnaught@synergy8.com; 'Antony > Dovgal'; Andi Gutmans; 'Cristian Rodriguez'; internals@lists.php.net > Subject: Re: [PHP-DEV] Garbage collector patch >=20 > Richard, >=20 > zval is such a common PHP structure that in a scope of a single script > (even a trivial one) you'd have thousands of them. Therefor even an > extra 4 bytes matter, and for people with large application it would > matter even more. I wish the patch was such that it had no impact on > the people who don't need it, but the reality is that for anyone who > does not need gc cycles, it'll be a performance (speed & memory) > penalty. This is why I had intimately suggested making it a compile > time, configuration option. >=20 >=20 > On 7-Dec-07, at 9:25 PM, Richard Lynch wrote: >=20 > > On Tue, December 4, 2007 2:18 pm, Rasmus Lerdorf wrote: > >> Stanislav Malyshev wrote: > >>>> 1. Always compile it in but leave undocumented #ifdefs in place > for > >>>> performance freaks. Those same performance freaks aren't going to > >>>> care > >>>> about the binary compatibility issue since they are the same > people > >>>> who > >>>> build all their own stuff. > >>> > >>> Note that breaking BC is not only about performance - one your > build > >>> is > >>> not the same as mainstream PHP, you can't use any binary extension > >>> which > >>> would do anything non-performance-related - like interfacing some > >>> external system/library, debugging, profiling, testing, security > and > >>> so on. > >>> Any commercial module won't be available for the user of this > >>> switch, > >>> and all open-source modules one'd have to build by oneself, which > >>> may be > >>> serious maintenance issue. I know there are a bunch of companies > >>> that > >>> compile PHP with their own options but still use commercial > modules, > >>> including both performance and non-performance ones. They couldn't > >>> use > >>> this compile switch. > >> > >> Yes, I know what binary compatibility means. > > > > Call me crazy, but... > > > > Would it be possible to hard-code the bit that adds the 4 bytes to > the > > zval, but make the execution bit a flag so that binary compatibility > > is always there, but the executable code that does the GC can come or > > go as needed?... > > > > Or am I just talking nonsense due to ignorance? > > > > -- > > 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/from/lynch > > Yeah, I get a buck. So? > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > >=20 > Ilia Alshanetsky >=20 >=20 >=20