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




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/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