Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74156 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36181 invoked from network); 14 May 2014 07:01:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 May 2014 07:01:27 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.128.177 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.128.177 mail-ve0-f177.google.com Received: from [209.85.128.177] ([209.85.128.177:62882] helo=mail-ve0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/FC-53767-5C413735 for ; Wed, 14 May 2014 03:01:26 -0400 Received: by mail-ve0-f177.google.com with SMTP id db11so1829408veb.36 for ; Wed, 14 May 2014 00:01:23 -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=4zLBsuehCZCERI2DxV6gM6Uw2dasQA1i38rPPn0xGrY=; b=eu731kprUDDlrPErXGpWQZFrMtYYUGunvk3rJc5fK3vf0v+ox3VlSnoBv1kzcCV/y6 ThBKfpCGWPtWrSamjM19qkWcha2e66aXyvPFaGF7Bx7G2m8p8nWKaYGgKz0IcZvJgp0i gSw9BczWQN4H2IFaH0upU4iOAzCZ+dtkCvi5KlIOZP8MwoWPAWJzh45Z0qbK3tiUPdZD SxLU3Dcq6yQ0gdYCPpLXImsJg+OW0eKmTisa6eI6O4Ul9HZOuVeK6zdmr7Oh57Ne8uTZ U1sogKe5QuV6++0wqfoQGXTia9rjVOYu0dbxZgPd1WTJyWYsc5/HaXXJMZjoornZQb6k cODg== X-Gm-Message-State: ALoCoQl+N1DWCJ7xhmUphgLV71yirtKCsZhM3+3n2ILfgoRGQxV39fmMsIz7vA83tPykqvuwE6vrjpK5uGFP5jyMuDtIJpA5u32J6CCMcIHAT7rpwAdv2HUVd2klFShEbPoKqKiG/KNm MIME-Version: 1.0 X-Received: by 10.58.154.10 with SMTP id vk10mr1623834veb.18.1400050883301; Wed, 14 May 2014 00:01:23 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Wed, 14 May 2014 00:01:23 -0700 (PDT) In-Reply-To: References: Date: Wed, 14 May 2014 11:01:23 +0400 Message-ID: To: Pierre Joye Cc: Anatol Belski , PHP Internals Content-Type: multipart/alternative; boundary=047d7b5d84ef91280204f956bf29 Subject: Re: [PHP-DEV] [VOTE] [RFC] 64 bit platform improvements for string length and integer From: dmitry@zend.com (Dmitry Stogov) --047d7b5d84ef91280204f956bf29 Content-Type: text/plain; charset=UTF-8 How can you reduce memory overhead if you start using 64-bit number for class names and other entities? If you have been developing this patch for months, why didn't you make it already? I'll tell you - because it's impossible. Thanks. Dmitry. On Wed, May 14, 2014 at 10:27 AM, Pierre Joye wrote: > hi, > > On Wed, May 14, 2014 at 7:57 AM, Dmitry Stogov wrote: > > Pierre, > > > > you developed a patch that will negatively affect every PHP application, > > just to use "modern" types... > > it's completely not necessary step for 64-bit support. > > It is amazing that we have to argue about that in 2014. > > Again, it is not only about about just using it but to finally have a > safe and clean 64bit implementation. Almost every other project did > that years ago, recommendation from various compilers developers, > security teams, etc. do recommend to implement 64bit support this way. > We had issues because of the lack of usage of this well known > standard. And now it is told that it is useless? I cannot agree with > this statement, sorry. > > Now, about the numbers, which are based on a prototype, there are > rooms for more improvements, we both know that. As our numbers show, > based on 5.6 and 5.6+patch, the actual impact is much smaller. And > this is without digging deeper or without looking at what would be > possible when both phpng and this patch would be merged and improved > together. We are smart people and good developers, and we both have > very good contacts to compilers expert. We can reduce the impact even > more and improve the phpng optimization as well. > > However, reducing the 64bit support to "only about allowing large > string", only to 64bit integer for long or "only about using modern > types" is wrong, and we again both know that. > > > Cheers, > Pierre > > @pierrejoye | http://www.libgd.org > --047d7b5d84ef91280204f956bf29--