RE: Minimizing dots for accessing properties

"Lon Boonen" <[email protected]> Tue, 23 May 2006 13:29:22 +0200
Newsgroups gmane.comp.web.dom.wdf
Message-ID <[email protected]>
> It 
> probably depends on the browser, but I think javascript engines might 
> cache a number of recently-used variables/properties or so, 
> so for speed 
> it may not make a difference

I don't think so...

The method you're calling is very well capable of changing the path to
that method.
The JS engine can't be certain it's cached version is still correct.
JS is a far too dynamic language to do reliable caching.

But anyway: don't think, measure. And you'll very probably see a lookup
costs about 1 microsec.

Lon


------------------------ Yahoo! Groups Sponsor --------------------~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/9rHolB/TM
--------------------------------------------------------------------~-> 

Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

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

<*> 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/