On Thu, Jun 22, 2017 at 8:02 PM, Robert Poor <rdp...@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.
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss