Math.sincos(x)?
Robert Poor
rdpoor at gmail.com
Fri Jun 23 16:54:18 UTC 2017
> Allocating, filling, accessing and GC'ing the return object will take
more time than calling the underlying C
That seems like the nail in the coffin for this suggestion. Thanks. I
don't have anything to add.
On Fri, Jun 23, 2017 at 9:34 AM, Florian Bösch <pyalot at gmail.com> wrote:
> On Thu, Jun 22, 2017 at 8:02 PM, Robert Poor <rdpoor at gmail.com> wrote:
>>
>> function sincos(theta) {
>> return { sin: sin(theta), cos: cos(theta) };
>> }
>>
>
> Allocating, filling, accessing and GC'ing the return object will take more
> time than calling the underlying C library function which emits the machine
> code for the processor to consult his trigonometric functions.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170623/ecf2226e/attachment.html>
More information about the es-discuss
mailing list