Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67404 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96450 invoked from network); 12 May 2013 18:56:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 May 2013 18:56: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.215.50 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.50 mail-la0-f50.google.com Received: from [209.85.215.50] ([209.85.215.50:39491] helo=mail-la0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/E3-55400-FE5EF815 for ; Sun, 12 May 2013 14:56:48 -0400 Received: by mail-la0-f50.google.com with SMTP id dz20so1594508lab.37 for ; Sun, 12 May 2013 11:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=QbHFkCoeYD3AUQRjaVtYxKGCdkKpeE1bTj60hvcj6qM=; b=XL6j0o1O8yqSmIBgbBgLsjDL+DTmwfOyM9uikmeZCqjqUr1Rbo9/2pcEX+gLYx/CuM XY6E/wdHvyyHvl114OmElV3Kv6+mgf/f+14Px+Y46jLRmtoZTPBVTKpgLLG9bW30rLqr p9laLOkc+ypXe7s9MMRNWd3r+m/yYKmrPSzbFZ8dIzpI2RgyMI5qVilyRQS4U3E8i/T5 HM73Hq2jEhQU8hCvoBCkeOZ5OReZt6FW+6oGUZstpvTtOQAur3V+UmCJkX61F8j9ps1U DyFCe3vc/714GZ+GOzBZ3CE8AE/FKSaNZ3SNmPOJh7ro05bkG0aeQT3MH37mI6X6qevH esmQ== MIME-Version: 1.0 X-Received: by 10.112.180.2 with SMTP id dk2mr11504126lbc.43.1368385004619; Sun, 12 May 2013 11:56:44 -0700 (PDT) Received: by 10.112.138.72 with HTTP; Sun, 12 May 2013 11:56:44 -0700 (PDT) In-Reply-To: <518FD653.6070705@daylessday.org> References: <518FD653.6070705@daylessday.org> Date: Sun, 12 May 2013 20:56:44 +0200 Message-ID: To: Antony Dovgal Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Internal operator overloading and GMP improvements From: pierre.php@gmail.com (Pierre Joye) On Sun, May 12, 2013 at 7:50 PM, Antony Dovgal wrote: > On 2013-05-12 19:25, Nikita Popov wrote: >> >> Hi internals! >> >> https://wiki.php.net/rfc/operator_overloading_gmp >> >> This RFC proposes to add operator overloading for INTERNAL classes. >> Furthermore it exemplarily implements the new API for GMP. > > > IMO the proposal B is quite reasonable change, but the proposal A (i.e. the > operator overloading part) is definitely an overkill. > A simple benchmark should demonstrate that using GMP for basic arithmetic > would kill performance in quite a brutal way. Right, the difficulty here is to use it for large numbers only. It reduces the impact for standard ranges but do not totally suppress it. Cheers, -- Pierre @pierrejoye | http://www.libgd.org