i ran the tests [on firefox 3.0.6/linux] found in the link provided by fabiomcosta : http://www.anieto2k.com/demo/mooclass/ and i saw that indeed mootools performs well. the only thing that Resig's implementation is better is "instantiating subclasses", which doesn't affect me too much - i was interested more in calling methods in subclasses. all this inheritance issue is very important, especially with mootools that rely heavily on OO. think games [my weakness]: having to call methods on 10-20 instances of subclasses [gameCharacter -> badGuy -> AIBadGuy ... and i could go on] to check for collisions only with other 50-100 objects and then draw them again and all this at least 40-50 times a second, well, you kind of need all the performance you can squeeze from the lib you use - though i didn't choose mootools for my games for performance reasons but for OO style it had which helped me a lot designing and structuring the code. let's say games is an extreme example. take moowidgets then. think someone will extend it for his own use, and then another one will build something upon that too. i am sure the developers here at mootools are aware of the importance of inheritance, i just wanted to stress it a little bit more.
regargds, jgabios On Wed, Feb 18, 2009 at 7:40 PM, nutron <[email protected]> wrote: > It bothers me that Moo's performance is being benchmarked against code > Resig played with but isn't actually in use in production. If they were to > use Resig's content and encounter use cases that dictated that they add > functionality they would very likey have different results than this > theoretical example... > > On Wed, Feb 18, 2009 at 9:13 AM, fabiomcosta (via Nabble) < > ml-user%2b98816-1760363...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2348319&i=0> > > wrote: > >> theres a comment of a guy that replaced prototype style with mootools >> style, see: >> >> http://www.anieto2k.com/demo/mooclass/ >> >> Fábio Miranda Costa >> Engenheiro de Computação >> http://meiocodigo.com >> >> >> On Wed, Feb 18, 2009 at 1:55 PM, Fábio Costa >> <fabiomco...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2348156&i=0> >> > wrote: >> >>> the guy updated the post: >>> >>> http://www.broofa.com/blog/2009/02/javascript-inheritance-performance/ >>> >>> [Update] *MooTools* - For you MooTools fans out there, I believe that >>> library uses the same approach that Dean Edwards came up with for Base2, so >>> performance should be similar. aNieto2K links to his test in the comments, >>> below, if you'd like to verify this for yourself. (I'd add this to the >>> test, but Prototype and Moo collide over the use of the 'Class' name) >>> >>> >>> Fábio Miranda Costa >>> Engenheiro de Computação >>> http://meiocodigo.com >>> >>> >>> >>> On Wed, Feb 18, 2009 at 11:51 AM, gabriel munteanu >>> <jajali...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2348156&i=1> >>> > wrote: >>> >>>> related to this article: >>>> http://ajaxian.com/archives/javascript-inheritance-performance >>>> >>>> where do we position? >>>> >>>> regards, >>>> jgabios >>>> >>> >>> >> > The MooTools Tutorial: www.mootorial.com Clientcide: www.clientcide.com > > ------------------------------ > View this message in context: Re: what type of inheritance does mootools > use<http://n2.nabble.com/what-type-of-inheritance-does-mootools-use-tp2347233p2348319.html> > Sent from the MooTools Users mailing list > archive<http://n2.nabble.com/MooTools-Users-f660466.html>at Nabble.com. >
