Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57934 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38573 invoked from network); 22 Feb 2012 06:17:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2012 06:17:11 -0000 Authentication-Results: pb1.pair.com header.from=johncrenshaw@priacta.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=johncrenshaw@priacta.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain priacta.com designates 64.95.72.244 as permitted sender) X-PHP-List-Original-Sender: johncrenshaw@priacta.com X-Host-Fingerprint: 64.95.72.244 mxout.myoutlookonline.com Received: from [64.95.72.244] ([64.95.72.244:9093] helo=mxout.myoutlookonline.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/D1-16342-668844F4 for ; Wed, 22 Feb 2012 01:17:10 -0500 Received: from mxout.myoutlookonline.com (localhost [127.0.0.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id 3A3BD8BE0B7; Wed, 22 Feb 2012 01:17:07 -0500 (EST) X-Virus-Scanned: by SpamTitan at mail.lan Received: from HUB023.mail.lan (unknown [10.110.2.1]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mxout.myoutlookonline.com (Postfix) with ESMTPS id C2DDA8BE076; Wed, 22 Feb 2012 01:17:06 -0500 (EST) Received: from MAILR001.mail.lan ([10.110.18.27]) by HUB023.mail.lan ([10.110.17.23]) with mapi; Wed, 22 Feb 2012 01:17:04 -0500 To: Deepak Balani , "flavius@php.net" CC: "internals@lists.php.net" Date: Wed, 22 Feb 2012 01:16:52 -0500 Thread-Topic: [PHP-DEV] PHP Script Compile System Thread-Index: AczxKHU2Wr+ZMte2Q7Cgky5fR3Vo5AAABYwQ Message-ID: References: <4F448356.3020008@php.net> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: [PHP-DEV] PHP Script Compile System From: johncrenshaw@priacta.com (John Crenshaw) > -----Original Message----- > From: Deepak Balani [mailto:wgpdeepak1989@gmail.com]=20 > Sent: Wednesday, February 22, 2012 1:07 AM > To: flavius@php.net > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] PHP Script Compile System > > No I mean persistent compilation system like > > Java > > HelloWorld.Java -> HelloWorld.class > > > HelloWorld.php -> HelloWorld.gpc > > When you call > > gpc_import('HelloWorld.php'); > > then function first look for HelloWorld.gpc if found then include it and = if not then look for > HelloWorld.php or HelloWorld.inc (whatever the setting is) if found compi= le it and include it else > raise an error. Can you explain how this is better or functionally different from the behav= ior of APC? APC caches bytecode this way too. Unless I've horribly misunder= stood something, when you include the file APC uses the cached bytecode as = long as it is available and the file was not since modified. If the file wa= s modified APC recompiles it and caches the bytecode. Sounds like the same = net result to me, except that APC is less complicated, requires no code cha= nges, and automatically clears its own cache. Did I miss something? John Crenshaw Priacta, Inc.