BTF Measurements

Kevin Smith khs4473 at gmail.com
Tue Mar 13 21:03:53 PDT 2012


Hi Allen,

I've updated the tool to count the number of potential object literal
methods as well.  I'll post details tomorrow.

kevin

On Tue, Mar 13, 2012 at 11:12 PM, Allen Wirfs-Brock
<allen at wirfs-brock.com>wrote:

> Function expressions in object literals that could use concise method
> syntax?
>
>
>
> Rick Waldron <waldron.rick at gmail.com> wrote:
>
> Kevin,
>
> Over the weekend I applied David Herman's new tri-lambda syntax to
> Popcorn.js to see how it would look and feel:
>
> https://github.com/rwldrn/popcorn-js/compare/tri-lambda
>
> So, just now I ran Popcorn.js through your Analytics Machine, here is the
> output:
>
> Total Function Expressions*: 63 65.625% Expression Functions**: 1219.047619047619047%Expression Functions That Return an Object Literal:00%Functions with a single statement:914.285714285714285%Block Functions:4266.66666666666666%
>
> * Does not include function expressions that contain references to 'this'
> in its immediate scope.
>
> ** Function expressions whose first statement is a return.
> Parameter List Length 0 17.46031746031746% 1 47.61904761904761% 230.158730158730158%34.761904761904762%4 or more0%
> On Tue, Mar 13, 2012 at 8:55 PM, Kevin Smith <khs4473 at gmail.com> wrote:
>
>> I've updated the tool to also analyze the number of formal parameters for
>> each BTF candidate.  I've haven't had time to update the spreadsheet, but
>> for every body of code that I've sampled so far, 1 is the most common
>> number of formal parameters.
>>
>> This suggests that optimizing syntax for BTFs with one parameter might be
>> worthwhile.
>>
>> kevin
>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120314/928ed263/attachment.html>


More information about the es-discuss mailing list