I moved away from the mootools hash, because it is no longer supported
in current mootools versions and I did not find any big advantages. I
could do anything I needed by using "native" JS objects
And I don't see any adavantage of using "$defined" instead of "in". If
some-one does, please enlighten us.

Performance-wise, I am not sure if there is a big difference.

On 1 Aug., 23:07, Tyler Slater <[email protected]> wrote:
> i'm just using the mootools hash table like in the nickname.js example
> because they had a few bonus methods.  I started out with the same approach
> except with the syntax:
>
> var userList = new Object();
>
> do you have any idea if the mootools hash table would have better or worse
> performance?  the native object is a a hashtable too, right?  they should be
> similar....what do you think?
>
>
>
>
>
>
>
> On Mon, Aug 1, 2011 at 12:58 PM, Xosofox <[email protected]> wrote:
> > Don't want to lead the discussion about APE performance in another
> > direction.
>
> > Just to clarify, I use code like this:
>
> > var userlist={};  //it's an object - are there "associative arrays" at
> > all in JS?
> > userlist["user1"]="user1";
>
> > for (u in userlist) {
> >  //do something
> > }
>
> > And it performs!!
>
> > On 1 Aug., 16:15, Wes Garland <[email protected]> wrote:
> > >  > reducing bandwidth and even CPU,
>
> > > > even though there are a lot of loops invlolved.
>
> > > This is a not a big surprise -- the version of APE you were using was
> > > probably using a version of SpiderMonkey with only a tracing JIT -- which
> > > compiles (mostly) loops to native code before execution.
>
> > > Side note -- "associative arrays" are not as good a choice as JavaScript
> > > objects in 99% of cases.   They incur extra overhead by virtue of being
> > > arrays, but you do not get the dense array packing optimizations unless
> > you
> > > are using mostly-ordered numeric properties.
>
> > > Wes
>
> > > --
> > > Wesley W. Garland
> > > Director, Product Development
> > > PageMail, Inc.
> > > +1 613 542 2787 x 102
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "APE Project" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/ape-project?hl=en
> > ---
> > APE Project (Ajax Push Engine)
> > Official website :http://www.ape-project.org/
> > Git Hub :http://github.com/APE-Project/

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to