Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74149 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99880 invoked from network); 13 May 2014 22:52:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 May 2014 22:52:25 -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.220.170 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:57033] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/27-53767-822A2735 for ; Tue, 13 May 2014 18:52:25 -0400 Received: by mail-vc0-f170.google.com with SMTP id lf12so1408051vcb.29 for ; Tue, 13 May 2014 15:52:22 -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=8rJAJ0PztKpP1+yX5CZFBC2OGHbbnHsyD2RX0Zzx0Ak=; b=HBrS9qZpA84FvzmNlHLurZG6ghRg55Zb5pFw50i8urM/4RhLKTW/ifQMl6ANyvDmdO NmLQ36BgAEf1Q878spNz7pLWo2hrXdGDYmDrftUF4pIQMhv4q5es+qI8O4Ivt5B8+IeH jByTKCMkc/AZvLHfMad6zuV6j0MiKL91ArZfW9mqHmu5n90C+3KlNyNNQt93UcYPLD9j OmexxvUQU0E1ZOyedPa4SGiFhTq/ZR4AvSUUNxlFKkQzVgcF/QKMscs0k2+Z7WckSuyW iabhhtqAy3PB4tSgSEotak6Kh5WKQFIFRp2ss79fyrwrM2EKOJ6jEhxvau6TryNr4Wz+ vw+w== X-Gm-Message-State: ALoCoQnRpixo+Dynm3yL2Nilj5TObU5N7sxtHkvKwNhO2oWd+QxtWZmLDfr+7pDTdql5vMsnb8YPS3Esdtkm80h55pHtcPrYFZycYZ/9+HRa3ptq6/fFgPtsHdRXj3NyjofV6d6lwg2g MIME-Version: 1.0 X-Received: by 10.58.186.207 with SMTP id fm15mr30869781vec.4.1400021541935; Tue, 13 May 2014 15:52:21 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Tue, 13 May 2014 15:52:21 -0700 (PDT) In-Reply-To: References: Date: Wed, 14 May 2014 02:52:21 +0400 Message-ID: To: Anatol Belski Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7b67594caf715a04f94fea69 Subject: Re: [PHP-DEV] [VOTE] [RFC] 64 bit platform improvements for string length and integer From: dmitry@zend.com (Dmitry Stogov) --047d7b67594caf715a04f94fea69 Content-Type: text/plain; charset=UTF-8 Anatol, We discussed your patch in private and I showed you the big penalty it makes... I really, don't see, what do you like to achieve initiating voting right after that. :( I've just take a quick look over your initial patch for phpng at https://gist.github.com/weltling/a941d8cf6c731640b51f Actually, I would support only one idea from your patch - make IS_LONG to be 64-bit on _WIN64. Your zend_size_t related changes, in my opinion, makes little sense and actually makes more harm. I recompiled phpng with your patch on Linux x86_64 and got the following numbers: zend_string size increased from 24 to 32 bytes HashTable size increased from 56 to 72 bytes zend_op_array size increased from 248 to 264 bytes zend_class_entry size increased from 512 to 568 bytes size of each opcode sizeof(zend_op) from 48 to 56 bytes Anyone may recompile phpng (with and without patch) and then get these number running $ gdb sapi/cli/php > p sizeof(zend_string) ... Can you imagine memory consumption difference on a large application? More memory usage => more CPU cache misses => worse performance. and what are the advantages? strings and class names > 2GB? For me it's too big payment for useless feature. -1 Thanks. Dmitry. On Wed, May 14, 2014 at 12:51 AM, Anatol Belski wrote: > Hi, > > as announced previously, the vote starts on May 13th and ends on May 20th. > > https://wiki.php.net/rfc/size_t_and_int64_next#vote > > The RFC is considered approved with 50%+1 acceptance. Happy voting :) > > Best regards > > Anatol > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --047d7b67594caf715a04f94fea69--