Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73954 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19880 invoked from network); 6 May 2014 08:34:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 May 2014 08:34:37 -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.212.174 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.212.174 mail-wi0-f174.google.com Received: from [209.85.212.174] ([209.85.212.174:38490] helo=mail-wi0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/C2-04569-B9E98635 for ; Tue, 06 May 2014 04:34:36 -0400 Received: by mail-wi0-f174.google.com with SMTP id r20so3530983wiv.7 for ; Tue, 06 May 2014 01:34:32 -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=nPCcGqbjTI6ah+lT8jPmI5m8Lyo5XcEHycQlI6Eogb0=; b=XUXVBSfdFs9lvafG8JaefSR133aSNou9NEW3Tux7V1QS6t7q56dTJKWHyZpyreEHtS FUa7WG0TmzAWLiflA4Q5T9Mg8QC0xJO3tg+AaXf6cbJ+reXej6BSwU9LsasxwByEV/7/ O7fK7yQ3TEc3Hdsn+2Dd8Hs3ri5MG+HGmnuOhFVfdFHExoPDwDEKYQco4jufqDquXchB ShWe5vbQOAYZyC0jWUt/vzRgPB+sAqrrug4Uck3VQRUg9diHMtDiPE7LDJq0d4NJ9QOe GROUpQe3OoWZyrcb7BJ67KV1STeQM85EUjU/4+vlSpYf4yN3NEp3tmuw7dMR51vaQvw8 nHKg== X-Gm-Message-State: ALoCoQnQ/uFseKdBBktdwR+7K75iAUV/BR9EM3EWfLd+33HTSQ7deqKYuD8IDA3ft2NzxiVsnwe5leqSrcJXywRg/YtsBvjwplHapMEjfgRnOHvZmNCwrwwN9zpM08RD/EXAynbWZB/l MIME-Version: 1.0 X-Received: by 10.194.171.167 with SMTP id av7mr31624147wjc.32.1399365272735; Tue, 06 May 2014 01:34:32 -0700 (PDT) Received: by 10.227.234.6 with HTTP; Tue, 6 May 2014 01:34:32 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 May 2014 12:34:32 +0400 Message-ID: To: Anatol Belski Cc: Pierre Joye , PHP Internals Content-Type: multipart/alternative; boundary=089e0122f2cefe4fcc04f8b71d98 Subject: Re: [PHP-DEV] phpng: Refactored PHP Engine with Big Performance Improvement From: dmitry@zend.com (Dmitry Stogov) --089e0122f2cefe4fcc04f8b71d98 Content-Type: text/plain; charset=UTF-8 On Tue, May 6, 2014 at 12:21 PM, Anatol Belski wrote: > Hi Dmitry, > > On Tue, May 6, 2014 09:31, Dmitry Stogov wrote: > > Hi Anatol, > > > > > > i agree that coordination from beginning would make some thing easier, > > but I hardly believe we would able to do the PoC in short time with > > endless discussions. > > > > Lets take what we have now. > > I understand what you are not glad to do the same work once again. > > I make take some part of this work, if we come to agreement. > > > Yep, we have what we have now, so lets take it as the basis. I do not shy > to take that effort as well, not a question at all. > great! > > > > > According to performance, I wouldn't believe to anything except tests. > > and it's why I propose to start with the part that can't make any harm. > > > Yeah, there is almost no diff if you look here > > http://windows.php.net/downloads/snaps/ostc/pftt/perf/results-20140411-masterr6c2f7bc-str_size_and_int64raa0c920.html > (that's also linked from the RFC). Many scripting languages do support > that like python and ruby and seem to have no harm. AFAIR Python even > implements int64 on 32 bit platforms. So IMHO it really makes sense too > keep both as then we have a balance between the functionality and > performance, both will have a gain and both can get further improvement in > the future. > It's the reason why we are faster :) support for both int32 and int64 is going to be a big overhead even on 64-bit platforms. (I implemented and tested it about 8 years ago). Each math opcdoe (ZEND_ADD, ZEND_MUL etc) are going to be complicated finding the right operand types combination and overflow handling. Thanks. Dmitry. > > Best regards > > Anatol > --089e0122f2cefe4fcc04f8b71d98--