Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74210 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69532 invoked from network); 14 May 2014 19:10:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 May 2014 19:10:48 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.178 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.178 mail-qc0-f178.google.com Received: from [209.85.216.178] ([209.85.216.178:64588] helo=mail-qc0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/01-15285-7BFB3735 for ; Wed, 14 May 2014 15:10:47 -0400 Received: by mail-qc0-f178.google.com with SMTP id l6so3658832qcy.9 for ; Wed, 14 May 2014 12:10:44 -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=JprlckzWmyRBA9w8dDoIr0hsPU/oL2pC9jceL38aCBA=; b=Z7xEY7TeyJ+xZKZgk+59E0S73OH2ahefkx8lPMLy7MMivXpUWJPDAKRURyStX4qkkI sEW84uvqfMhMhr5kyzNsjqyDhFhtwdgYmjIEt1P4HwnrE6hue+9uZFSymvKwJDev3J3A nmIx3Vvistwznf8yH2W8m1Zm29ds8LVQyLEFddFYmYFg9UtOLOsOTHbqL0xl3AQU9+rs jXKVjjLcDb1K385yOi7JADktHCPygejV/Q2AEqI4kVKc+MbEctA1JKwqDzzHD10rqHiI DIRN6gmOB/tZ+I7Y//S4gQybi+H0N/BwYEItTGlsMhOGQM9MhumG73zC40+AcWa2uOhj xMMw== MIME-Version: 1.0 X-Received: by 10.229.220.197 with SMTP id hz5mr9170335qcb.9.1400094644877; Wed, 14 May 2014 12:10:44 -0700 (PDT) Received: by 10.140.47.231 with HTTP; Wed, 14 May 2014 12:10:44 -0700 (PDT) In-Reply-To: <5373B764.9060804@sugarcrm.com> References: <6CA660EA-2858-4566-9696-D68BACFD8E58@ajf.me> <5373B764.9060804@sugarcrm.com> Date: Wed, 14 May 2014 21:10:44 +0200 Message-ID: To: Stas Malyshev Cc: Dmitry Stogov , Andrea Faulds , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE] [RFC] 64 bit platform improvements for string length and integer From: pierre.php@gmail.com (Pierre Joye) On Wed, May 14, 2014 at 8:35 PM, Stas Malyshev wrote: > Hi! > >> 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. > > Maybe we could optimize it by using different lengths for data and for > language-based strings? One can plausibly argue you can have 2G string > in zval, but having 2G class name is clearly out of the bounds of > reality. In fact, for class names even single byte would probably be > enough, You have a point here, for class, variable and co names, everything is in place already and does not need size_t. That's easy to change. Everything else (zval and co) needs it tho. Cheers, -- Pierre @pierrejoye | http://www.libgd.org