Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33682 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72234 invoked by uid 1010); 4 Dec 2007 19:29:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72219 invoked from network); 4 Dec 2007 19:29:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Dec 2007 19:29:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=michaelm@swplumb.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=michaelm@swplumb.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain swplumb.com from 209.181.81.165 cause and error) X-PHP-List-Original-Sender: michaelm@swplumb.com X-Host-Fingerprint: 209.181.81.165 mail.swplumb.com Windows XP Pro SP1, 2000 SP3 Received: from [209.181.81.165] ([209.181.81.165:3963] helo=swplumb.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/D3-47601-19AA5574 for ; Tue, 04 Dec 2007 14:29:21 -0500 Received: from michael-ms-computer.local [192.168.2.66] by swplumb.com with ESMTP (SMTPD-9.22) id A97B02C8; Tue, 04 Dec 2007 12:24:43 -0700 Message-ID: <4755AA8E.704@swplumb.com> Date: Tue, 04 Dec 2007 12:29:18 -0700 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: internals Mailing List References: <4731278C.8020301@chiaraquartet.net> <4731F977.4080502@zend.com> <4753B087.4020206@chiaraquartet.net> <47548031.20608@zend.com> <30bd80240712031605y326d886fl6197839a60eeedcf@mail.gmail.com> <47559014.2070607@zend.com> <30bd80240712040944we67015ds3b86c4f9efeb266f@mail.gmail.com> <475594FC.1060903@zend.com> <475598BB.2010203@swplumb.com> <52dbac0f0712041023id44081ftc3c2147a1b69a13a@mail.gmail.com> In-Reply-To: <52dbac0f0712041023id44081ftc3c2147a1b69a13a@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] ignored patches From: michaelm@swplumb.com (Michael McGlothlin) > Actually, it's an expected tradeoff of interpreted languages. > Compilable languages have both a compiler and a linker that bundles > everything in one executable. By using bytecode caching and bundling > you're just getting closer to the performance expectations of a > compilable language. But bundling is not as easy as it seems, and its > complexity is proportionally inverse to the complexity of the language. > > As much as you can try to improve this area, you can't do much without > resorting to hacks and workarounds. An option is becoming a > managed-code language such as Java or the .Net family. If your already doing bytecode caching how much benefit is there to bundling? In that case it seems the main slow downs would be the minor time involved in any actual system calls and whatever logic is done for imports. Unless you have a slow file system I can't imagine the actual file reads from disk being to big an issue. I have my file system keep a lot of stuff in RAM so that the disk doesn't actually have to be accessed very often. I do a lot of none-PHP programming that involves heavy file use and keeping it all in RAM makes it a lot faster. I can't see PHP making huge gains but they might help for people really worried about performance. With my current project I sadly have to interface to a slow back end system that is a commercial ERP product so I can't do anything to speed it up directly. Very annoying. The best I can do is cache as much data as possible. We're dumping a buttload ($30,000+) of money into a new AIX server for the back end to try to get it up to a decent speed. I'm a firm believer that it's better to throw more CPU power at a performance problem than to make code less maintainable. Just buy a faster server. -- Michael McGlothlin Southwest Plumbing Supply