Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66621 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50237 invoked from network); 14 Mar 2013 17:14:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2013 17:14:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.216.180 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.216.180 mail-qc0-f180.google.com Received: from [209.85.216.180] ([209.85.216.180:37716] helo=mail-qc0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/40-48242-D6502415 for ; Thu, 14 Mar 2013 12:14:21 -0500 Received: by mail-qc0-f180.google.com with SMTP id v28so1111934qcm.25 for ; Thu, 14 Mar 2013 10:14:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=ChqETvlBocch+mtnFJNNKPhOrTA/00qA2fJ0HyECclE=; b=MMKGcaVhU8ozrDsHsLqP//ESlnxj1cEaPtOg6bOvtYZx0Hyl7bacpOb46wjE6wgxpK fHMzKnwguRvPvJk3vvYaMDzB7CKgOdfJizILLeJU/O5JqyyR3gdijIS9PtvCLM1lW1TM yY6AH6o1q+22tebBN7nBeXJ7qhaIV56nW8OdwGK3Pr7cIKJUbGwXw3WCpbXvIfCQvM2i ZdsVvCLCZ68AuJdiWgCgt5o28TP5gQSc9vK4o2DlHSoUatKLVmyFarcYLDtCHwDsuHia aC/klbBljPMK0SRLyq/xHlBNNuXZZYMh8v9m5KBX7lC2jyLEwzzwm0GkCjHeLs+e9xfD kiYQ== X-Received: by 10.224.149.69 with SMTP id s5mr3633234qav.56.1363281259015; Thu, 14 Mar 2013 10:14:19 -0700 (PDT) Received: from [192.168.200.148] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id ih20sm1583514qab.2.2013.03.14.10.14.17 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Mar 2013 10:14:17 -0700 (PDT) Message-ID: <51420567.8000309@lerdorf.com> Date: Thu, 14 Mar 2013 10:14:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: Bob Weinand CC: Lazare Inepologlou , PHP Developers Mailing List References: In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQntpM7lWxBlg6anHgWTIH5+Mak3eZfSm6rxA5/gEbmA5e8H3bJEfDDvvPXwOuRlfg2saQmq Subject: Re: [PHP-DEV] feature request : easy shared memory From: rasmus@lerdorf.com (Rasmus Lerdorf) On 03/14/2013 09:13 AM, Bob Weinand wrote: > And there is no possibility to store the zval as raw binary data like in memory (deep copy?) > So that you only have to copy from ram? And replace the pointers to the place in the string? > This must be possible I think. And should be faster. > > shmop has to be opened on every request and only supports strings. > APC, memcache,... can only save under serialized form which is slow. APC doesn't serialize most types. Only actual objects need to be serialized because it is the easiest way to fully save and restore objects. eg. calling their __sleep()/__wakeup() magic methods, etc. Arrays are not serialized. -Rasmus