Math.sincos(x)?
Florian Bösch
pyalot at gmail.com
Fri Jun 23 16:34:49 UTC 2017
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/a45913bd/attachment.html>
More information about the es-discuss
mailing list