Math.minmax
Florian Bösch
pyalot at gmail.com
Thu Jun 29 08:19:45 UTC 2017
>
>
> - Improve performance
>
>
I doubt that this sequence of calls:
min = Math.min(min, value)
max = Math.max(max, value)
Is slower than this:
[min,max] = Math.minmax([min,max,value])
Because while the former can get inlined by JIT, the latter can't, and on
top, it allocates 2 objects which then have to be GC'ed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170629/14b51416/attachment.html>
More information about the es-discuss
mailing list