No, I'm referring to how it'd be implemented. JS implementations might choose to leverage native vector CPU instructions in their code gen to speed them up by a factor of 1.5-3.
----- Isiah Meadows [email protected] www.isiahmeadows.com On Wed, Nov 21, 2018 at 9:51 PM Gbadebo Bello <[email protected]> wrote: > > >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 _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

