Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74177 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79359 invoked from network); 14 May 2014 09:24:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 May 2014 09:24:41 -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.171 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.128.171 mail-ve0-f171.google.com Received: from [209.85.128.171] ([209.85.128.171:39769] helo=mail-ve0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/18-40033-85633735 for ; Wed, 14 May 2014 05:24:40 -0400 Received: by mail-ve0-f171.google.com with SMTP id oz11so2016095veb.16 for ; Wed, 14 May 2014 02:24:38 -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=WndjzeXEdxf7yMFCNcwu9ghYUNYZID3bIzrdpoHZHlw=; b=QYFG/Klbt3kfMGWrFSyTSefftTM62oln12jvett+9mD3tg4t88Ug1meH3Y4K7umAD2 xIYzrRRMfA+H5BXut4tKrk+eqFAUoL7IdtYltX/ileI3pAFvMo0MXWT6udnRWzrGLD5/ qx6fRZg6OwOeZfgInq7rizTaGuQcu502uWRbB052oNBCa8rGEwrSAestudPV+oi3E3dV F0anEnVnbmNYbmmUcJbshEi10S7h2p41qDjbloYF9pRmVq+J3t698Eu44RjdNTwzoWK0 R2+jtGzazwvEr5K9caTYqY/EhaWgKToIwSULHf4Y1cT7Untg7Mf4JfPz6Dec8cZ9fWFB RiCQ== X-Gm-Message-State: ALoCoQlA+WFfMTKxEavOY1kf6CLZxjVSlbp7T+NRRXIycrCUYWfryfyNFXCyr1UONzDQgU5SBxZKwUbVcPUlqKOGisjohzScbo1J8fU5qbEgpX/c/C28JX/+N0oy0qp2pl/8lZ0ByygK MIME-Version: 1.0 X-Received: by 10.220.105.4 with SMTP id r4mr2174417vco.27.1400059477979; Wed, 14 May 2014 02:24:37 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Wed, 14 May 2014 02:24:37 -0700 (PDT) In-Reply-To: <537333BF.7070106@lsces.co.uk> References: <4ED7146272E04A47B986ED49E771E347BBDA6AAA06@Ikarus.ameusgmbh.intern> <537333BF.7070106@lsces.co.uk> Date: Wed, 14 May 2014 13:24:37 +0400 Message-ID: To: Lester Caine Cc: PHP Internals Content-Type: multipart/alternative; boundary=089e0122f332d98e2d04f958bf27 Subject: Re: [PHP-DEV] [VOTE] [RFC] 64 bit platform improvements for string length and integer From: dmitry@zend.com (Dmitry Stogov) --089e0122f332d98e2d04f958bf27 Content-Type: text/plain; charset=UTF-8 Ah, you are on windows and lack 64-bit IS_LONG. This is the part of the patch that should be accepted. I mentioned it on original email. The "bad" thing that this patch did, it changed all C data structures to use 64-bit string lengths and it means that each such data sructure would take more memory. Even zend_op becames bigger and as it's used for VM byte-code representation you may just multiply the difference to number of opcodes in application (that might be millions). Unfortunately, phpng don't support firebird yet and it's not in our priority list. Thanks. Dmitry. On Wed, May 14, 2014 at 1:13 PM, Lester Caine wrote: > On 14/05/14 09:21, Dmitry Stogov wrote: > >> yes. We discussed that patch with Pierre for hours, and I always told that >> I afraid about memory consumption overhead. >> my tests showed it clearly >> >> phpng was started as closed project, because we didn't know if we'll able >> to succeed at all (it's not a first attempt) and we liked to move fast. >> Once, we got useful results we opened it. >> seehttps://wiki.php.net/phpng#performance_evaluation >> > > Dmitry > As all of my systems are based on Firebird, I can't currently test even if > I did have the time. One area that I have problems with is the fact that 64 > bit numbers are a key element of SEQUENCE/GENERATOR values which PHP does > not support well and which I'd like to see fixed, but I can understand your > concern over 64bit strings increasing memory consumption. This is why I > think that lumping several 64bit related items together does not make > sense? Looking at this from the hardware side, some 64bit processes will be > faster on a 64bit machine, but also supporting 32bit builds simply adds to > the overheads. I'd prefer to see better coverage of benchmarking since I > don't think limited testing gives the whole picture? But I don't see 64/32 > changes having a substantial effect. Do we need 64bit long strings - not > generally - but the facility should be covered properly while still > retaining 32bit operations? > > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=contact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - http://rainbowdigitalmedia.co.uk > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --089e0122f332d98e2d04f958bf27--