Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81756 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3781 invoked from network); 4 Feb 2015 03:02:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2015 03:02:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=reeze.xia@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=reeze.xia@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.178 as permitted sender) X-PHP-List-Original-Sender: reeze.xia@gmail.com X-Host-Fingerprint: 209.85.212.178 mail-wi0-f178.google.com Received: from [209.85.212.178] ([209.85.212.178:40616] helo=mail-wi0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/DF-20608-ECB81D45 for ; Tue, 03 Feb 2015 22:02:38 -0500 Received: by mail-wi0-f178.google.com with SMTP id bs8so686426wib.5 for ; Tue, 03 Feb 2015 19:02:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=GJskHcholw0Ze2hJ50Tj3ikLSiP5mtOTIaHlgQQPWcQ=; b=C3QvBJjxllzQiPqHlesB456chJxcCDY0Q7591PuB2cLf/MjeuL9pIJ36uF4oVZ6kVu FLjDzgiFkLoxCiVKqRTzZ7+Gup4kLVXyDaJu3bzm9XKjnpiT4ZMv1YwTkIHM2dK1XSQh zUArwu3cczdc049EpPD0K/zxkkBnBs6q3lFFb2/BDtyQGPI/qQOEkZxi4oTyCAaSlfX2 DP66IJuihcvXUzGVj9XibiucTbnV4cIXpPY0AV/xVRJ7yBylCP4Y6RUXDG8bHoBKix2y uK2GG942fV/d7sw5IV4/cz8f5428JSvb/eyuf+MHlQwq7JPkL37Pf+c2zaxEqHP19PQe AykQ== X-Received: by 10.180.107.164 with SMTP id hd4mr41297377wib.7.1423018954404; Tue, 03 Feb 2015 19:02:34 -0800 (PST) MIME-Version: 1.0 Sender: reeze.xia@gmail.com Received: by 10.195.12.163 with HTTP; Tue, 3 Feb 2015 19:02:14 -0800 (PST) In-Reply-To: <54D1593A.3000607@rodas.me> References: <54D1593A.3000607@rodas.me> Date: Wed, 4 Feb 2015 11:02:14 +0800 X-Google-Sender-Auth: Zj7PVb4rr5oB7PvwDdMOprrWea0 Message-ID: To: Cesar Rodas Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=e89a8f3ba085493a76050e3a6bfc Subject: Re: [PHP-DEV] Question regarding stream wrappers and op code cache From: reeze@php.net (reeze) --e89a8f3ba085493a76050e3a6bfc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Cesar, On 4 February 2015 at 07:26, Cesar Rodas wrote: > Hi Guys, > > I have a doubt, is it efficient include/require files from a source > different than the "real file system" a stream wrapper class? My > question is, would the op-code cache work as it would when reading a > file form the filesystem? > Yes it works if you are using 'phar' stream wrapper, the rest wrappers are not cached, @see https://github.com/php/php-src/blob/master/ext/opcache/ZendAccelerator.c#L1= 38-L142 This RFC: https://wiki.php.net/rfc/streams-is-cacheable is aim to remove the restriction and allow stream wrapper itself to decide should it been cached by opcache. > > Cheers, > > -- > C=E9sar D. Rodas > Open Source developer > +595-983-161124 > PGP: F9ED A265 A3AB C8A1 D145 7368 158A 0336 C707 0AA6 > > > --e89a8f3ba085493a76050e3a6bfc--