BTF Measurements

Mark S. Miller erights at google.com
Tue Mar 13 08:47:21 PDT 2012


On Tue, Mar 13, 2012 at 8:43 AM, Herby Vojčík <herby at mailbox.sk> wrote:

> Kevin Smith wrote:
>
>> [...] that function would not benefit at all from being converted to a
>>    bound-this function.
>>
>>
>> Depending on syntax, it could be rewritten like this:
>>
>>     panels.each(p => { p.fadeIn(); });
>>
>> which would offer gains in brevity, even though lexical this is not
>> used.  I'm assuming that for all "non-method" function expressions, BTFs
>>
>
> The question here is, if there is a observable difference in performance
> between BTF and non-BTF, and not to allow the shorter syntax only for the
> less performant one (either only for the more performant one, or for both),
> because shorter form will be used also when not needed.


Hi Herby, the question where? Kevin is asking the question that I'm more
interested in, and for the right reason. We're trying to figure out what
the relative needs are for different forms of shorter function syntax.

-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120313/4f193eb8/attachment-0001.html>


More information about the es-discuss mailing list