>An advantage to having this an internal primitive is you can use vector instructions to check 4-8 values in parallel and then end with a final step of finding the max/min value of the vector. (integers can just use bit hacks, float max/min has hardware acceleration).
I don't quite understand, does javascript now support vectorised operations on the client side or an external library would be needed for this? On Thu, Nov 22, 2018, 03:26 Gbadebo Bello <[email protected]> wrote: > Well, you are right. The `apply` method might not be the best(Performance > wise). > > @T.J. Crowder. Wow, my mind didn't go to `reduce` at all, I don't have any > issues with it, in fact I feel it would perform better than `apply` >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

