Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74200 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51586 invoked from network); 14 May 2014 17:38:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 May 2014 17:38:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.47 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.47 mail-qg0-f47.google.com Received: from [209.85.192.47] ([209.85.192.47:53723] helo=mail-qg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/5D-15285-7F9A3735 for ; Wed, 14 May 2014 13:38:00 -0400 Received: by mail-qg0-f47.google.com with SMTP id j107so3328300qga.6 for ; Wed, 14 May 2014 10:37:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Jk1oHBWZEyyoXin+tSZD7mIAi1Bw9BeKoWXGtps9wNc=; b=SX3kgJUGCa3BNLVbNJu2eauMW0fXUztyoObXuAUZI5JqIauW0wCSqEldE4ZqiI/glj kLBmWCJUGecMahZptx+f7n4Yoc2vGYvvplq33mY07RfDmyzSRdxrSJ8p0CKAS/FCnZTQ /ubqbByz9W61YgJ6savzDORcukSfirTZZc3/fqLIBjn5y2ZYaVEmakBioq5CD9N3OYFR e2Na4j2D+IfytQ/7f+tn6NK70o37dm8QYemG/vWYXr/c/Yx03vB6YIwLc6tC7IqWtRXA a7+t8ubURp1LjU/oBopgvMDXVpVKt5w3vRwz1BV4SYlTIOBhfJYzTWggICXI0U2bygfo u/GA== MIME-Version: 1.0 X-Received: by 10.224.49.67 with SMTP id u3mr5726268qaf.63.1400089077453; Wed, 14 May 2014 10:37:57 -0700 (PDT) Received: by 10.140.47.231 with HTTP; Wed, 14 May 2014 10:37:57 -0700 (PDT) Received: by 10.140.47.231 with HTTP; Wed, 14 May 2014 10:37:57 -0700 (PDT) In-Reply-To: References: <6CA660EA-2858-4566-9696-D68BACFD8E58@ajf.me> Date: Wed, 14 May 2014 19:37:57 +0200 Message-ID: To: Dmitry Stogov Cc: PHP internals , Andrea Faulds Content-Type: multipart/alternative; boundary=001a11c2ef801d99e904f95fa4e6 Subject: Re: [PHP-DEV] [VOTE] [RFC] 64 bit platform improvements for string length and integer From: pierre.php@gmail.com (Pierre Joye) --001a11c2ef801d99e904f95fa4e6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On May 14, 2014 7:15 PM, "Dmitry Stogov" wrote: > > phpng optimizes core data structures and primitives especially to reduce > memory consumption and transfer. > The effect of the patch on phpng might be worse than on master, because i= t > does opposite things. No, it does clean implementation and make it safe. Further improvements with phpng can be done but it was obviously not possible before, because phpng did not even exist from a php.net POV. > Thanks. Dmitry. > > > On Wed, May 14, 2014 at 9:04 PM, Andrea Faulds wrote: > > > > > On 14 May 2014, at 12:18, Dmitry Stogov wrote: > > > > *base structure sizes [bytes]* > > > > phpng str_size_and_int64 diff > > zval 16 16 0.00% > > zend_string 24 32 33.33% > > HashTable 56 72 28.57% > > Bucket 32 32 0.00% > > zend_op_array 248 264 6.45% > > zend_class_entry 512 568 10.94% > > zend_op 48 56 16.67% > > > > *base structure sizes [bytes]* > > > > master str_size_and_int64 diff > > zval 24 24 0.00% > > HashTable 72 80 11.11% > > Bucket 72 72 0.00% > > zend_op_array 248 272 9.68% > > zend_class_entry 576 608 5.56% > > zend_op 48 56 16.67% > > > > > > Interesting, what=E2=80=99s going on here? It seems to have a worse eff= ect on > > phpng HashTable than on master=E2=80=99s. Does the struct need re-align= ing again, > > perhaps? Or did it just fit neatly into an existing blank space in master=E2=80=99s > > HashTable? > > =E2=80=94 > > Andrea Faulds > > http://ajf.me/ > > > > > > > > > > --001a11c2ef801d99e904f95fa4e6--