2009/9/8 T.J. Crowder <t...@crowdersoftware.com>:
>
> Hi,
>
>> It really looks nicer :)
>
> Thanks!
>
>> I haven't run it but I guest it is possible to do
>>
>> this.method.$super.call(this, ...)
>
> No, you need to drop the "this." from the beginning of that.  See my
> reply to Allen a couple up (or the PDoc comments here[1]) for why.
>
>> arguments.callee.$supper.call(this, ...)
>
> Yup, that works (assuming $super rather than $supper), although it's a
> lot slower than using the function name.  It's still markedly faster
> than the current mechanism.
>
> -- T.J. :-)
>
> On Sep 8, 11:20 am, Radoslav Stankov <rstan...@gmail.com> wrote:
>> It really looks nicer :)
>>
>> I was generally using this.constructor ... and so on. But this is
>> better. I haven't run it but I guest it is possible to do
>>
>> this.method.$super.call(this, ...)
>> arguments.callee.$supper.call(this, ...)
>>
>> Witch is nice.
> >
>

In the end I downloaded the archive and used src to rebuild a new prototype.

Chrome...
test loops: 500000
Old mechanism time: 9666ms
New mechanism time: 639ms
*** The test was a bit short, the timing data may be suspect; try more loops.
Improvement: 93.39%, e.g., old takes 15.13 times as long as new.


A bit short!!!! Half a million loops and it's a bit short!!!!





-- 
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to