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/

Reply via email to