Re: [RFC] Internal operator overloading and GMP improvements

From: Date: Sun, 12 May 2013 18:56:44 +0000
Subject: Re: [RFC] Internal operator overloading and GMP improvements
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-67404@lists.php.net to get a copy of this message
On Sun, May 12, 2013 at 7:50 PM, Antony Dovgal <tony@daylessday.org> 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

« previous php.internals (#67404) next »