Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92745 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71684 invoked from network); 25 Apr 2016 17:58:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2016 17:58:58 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:38807] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/C0-02401-2EA5E175 for ; Mon, 25 Apr 2016 13:58:58 -0400 Received: by mail-wm0-f48.google.com with SMTP id u206so140057969wme.1 for ; Mon, 25 Apr 2016 10:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=FIyRJLPNEBqkg26ElPKVXek4YQt8PVvOWKB5ZKbGK40=; b=uWVPNNO7gMAxrkyb0kV7OUkmBE1f/l0qfpHtV4YhSAdp9ZXIcQiN3m/sfNMF4bCZT8 S/18s0T0PYu89W45MloBW9+GzuBNqA5YQwLhls6ipTYcd2VVrmemjXWIGfPbRVqCam4J g8H9oQoZdUPUBt/b0l40D+bfDhCk+J12WP4HcQWPbx8mwU0Q6SU3eq2mfUfDTBX6MS3A 06CaSACOKuo6IdJhsEFdpBxtZRnmF7MDckrE8xlyvPNv1afTbPrWvOzAfiN3RMb3BQrZ lw1dkicpwMzi68Ngxfh+3hTNo1FeJ8NvTnANccl0DDVE4veBZl0BhyGxNrp54bqmbm19 LRTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=FIyRJLPNEBqkg26ElPKVXek4YQt8PVvOWKB5ZKbGK40=; b=kN8JwripJMvpHS5uL86ZX1azlKgFdT/X9dughzG32N+DfkBQN64wdeUqZWSygW8E54 MFqUwIST3N8QoWhzsE04orfVNBT1BYruGqImtd+MLObmtiz1mC0QE8Msw7MJFTOGEFco r3L77d7AeXORcX8cEIKlLYfdEvVXqKpmBQXIQ+fZxaISQ9S+VeUiJL5IMZxIH6TGclcb iPAOndDD2frlfgN7aMWmbJhKy1PRl5hrtRTlkojlTSDdtTzJL2ja2agkoGRFEVFpljIc FuoZmBs3tKZkms9agUC3ZlodDcYXI00jPOXknYgdWdkjL/z+gunXUpskys/kviQ83S50 9xGQ== X-Gm-Message-State: AOPr4FUgbg4MgR+obnSnx1EJmpBxAeyt3MTrNRImqPegb2J+5AISkQWFXtRS5e+C7RCKiQ== X-Received: by 10.28.30.78 with SMTP id e75mr14368448wme.88.1461607135410; Mon, 25 Apr 2016 10:58:55 -0700 (PDT) Received: from [192.168.0.82] ([93.188.182.58]) by smtp.googlemail.com with ESMTPSA id r75sm19300925wme.18.2016.04.25.10.58.54 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Apr 2016 10:58:54 -0700 (PDT) References: <571E2B75.6000909@gmail.com> To: internals Message-ID: <571E5A62.9030502@gmail.com> Date: Mon, 25 Apr 2016 18:56:50 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Opcache::get($key), set($key, $value) to shared memory, is planned in PHP 7.1? From: rowan.collins@gmail.com (Rowan Collins) S.A.N wrote on 25/04/2016 18:49: >> There's not really a huge connection between opcode caching and optimization >> >(OpCache) and shared memory data caches (APCu, memcached, etc), so I don't >> >think there's any particular logic to calling such functions "opcache". >> > >> >So I guess the question becomes: "should APCu be made part of core?" I'm not >> >aware of anyone having proposed that, so don't know if there are strong >> >feelings for or against such a thing. > Yes, there are a lot of libraries to work with shared memory, but why > should they if there OPcache in core PHP? > Functions get, set key values will be useful and in demand. Because different situations call for different functionality. If the only reason not to use APCu was the need to install a PECL extension, then nobody would have implemented a PECL extension for Memcache, or Redis, etc. Storing data in PHP's shared memory has several downsides - for instance, inability to share with CLI / services built in other languages, non-persistent across server restarts, not shareable across instances, etc. For you, these may not be an issue, but to say that "if APCu functionality was in core, nobody would need any other memory cache" is somewhat naive. Regards, -- Rowan Collins [IMSoP]