Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74197 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39436 invoked from network); 14 May 2014 17:14:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 May 2014 17:14:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.220.171 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.171 mail-vc0-f171.google.com Received: from [209.85.220.171] ([209.85.220.171:32852] helo=mail-vc0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/8A-15285-474A3735 for ; Wed, 14 May 2014 13:14:29 -0400 Received: by mail-vc0-f171.google.com with SMTP id lc6so2869908vcb.30 for ; Wed, 14 May 2014 10:14:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=lD1Vm06oi7IeY2UnYkDjbOC5iFvuakLM/1gmC8PjpAo=; b=mcQELIsiO0Cw/91qIXvbwJHs5USMYPzuyGlzDU5xI7Zf3emxddBv891tbd1Jsaz9+U zGuCia6RGhZfsrU40KPxx03WQzTOHYFGPaGtc9sSCnKMRELdiefWEf90xzpN13JCWeox 6OlPK2jVd/6J4jmmJLYK6IFvbLUsS+KVR/u3GyxWWWsuZCVjmd1tk8muxOQVyL151ewp P4920L7oy+Oo9yKHyAonXLbkDhuW6azhZ403fI4eShx6JxQW1O38wJ2gvv0gU72mt58w ICwRJU+SJTreknHSQ5WwxNVIHDZkDwBhxUDQ5MYqgnBA1JypIEaXsnqHCFDmPnbMvOJa PVYA== X-Gm-Message-State: ALoCoQnCehegIlEfKb1cxLbk5K0KDFP8lJUQ7E2LkFPlhlFsl6j4AoHAMRvhrWpXrYYmQwVHYrfmfqQyHyDUnvVTTWFyL2wW47W+j1EC4FiznoMh8GiR+uvxYdzKRhDTbmKRhTorFn6s MIME-Version: 1.0 X-Received: by 10.58.98.232 with SMTP id el8mr1379354veb.42.1400087664930; Wed, 14 May 2014 10:14:24 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Wed, 14 May 2014 10:14:24 -0700 (PDT) In-Reply-To: <6CA660EA-2858-4566-9696-D68BACFD8E58@ajf.me> References: <6CA660EA-2858-4566-9696-D68BACFD8E58@ajf.me> Date: Wed, 14 May 2014 21:14:24 +0400 Message-ID: To: Andrea Faulds Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7b41c782ec493904f95f4fa5 Subject: Re: [PHP-DEV] [VOTE] [RFC] 64 bit platform improvements for string length and integer From: dmitry@zend.com (Dmitry Stogov) --047d7b41c782ec493904f95f4fa5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 it does opposite things. 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 effec= t on > phpng HashTable than on master=E2=80=99s. Does the struct need re-alignin= g 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/ > > > > > --047d7b41c782ec493904f95f4fa5--