On Thu, Jun 22, 2017 at 8:02 PM, Robert Poor <[email protected]> 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 [email protected] https://mail.mozilla.org/listinfo/es-discuss

