Re: Re: Supporting object types in BCMath

From: Date: Sat, 16 Mar 2024 12:35:23 +0000
Subject: Re: Re: Supporting object types in BCMath
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-122655@lists.php.net to get a copy of this message
On 3/16/24 11:24, Saki Takamachi wrote: > Hi, > > After thinking about it, this could be done in userland. I'll try creating a library > myself first. > > Regards. > > Saki Hi Saki One advantage of a new API is that it could be more efficient than the current API. The current API takes input as strings and outputs strings as a result, and therefore always has to reconstruct the BCMath internal state. By keeping everything inside an object you could keep the internal state, improving performance. Whether it makes a difference in practice, I don't know. Kind regards Niels

« previous php.internals (#122655) next »