On 10/17/05, david dailey <[EMAIL PROTECTED]> wrote:
>
> At 08:24 AM 10/17/2005, Doug wrote:
> >That way, you're only hitting the DOM to find the element once, instead
> of
> >twice. gEBI is a rather expensive method call, I would think, especially
> on
> >large documents (unless the implementation caches a hash table of all the
> >ids).
>
> Interesting -- I would take this to mean that if I'm creating a whole
> bunch of stuff dynamically -- where those things might, later on,
> change, then it might be best to maintain, in parallel, a JavaScript
> array of all the things (and their attributes). It would be redundant
> in terms of storage and probably chew up some memory allocation from
> the browser, but I suppose that is relatively cheap in comparison to
> the time factor. (I have noticed that when I pack more than a few
> hundred animated things into a page the browser gets sleepy.)
>
> Does that seem sensible?
>
> David
>
>
Mozilla maintains a hash table. I'd imagine most other browsers would do the
same, but I could be wrong.


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to