OZONE Asylum
Forums
DHTML/Javascript
Optimising JavaScript loops
This page's ID:
29314
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hey, To add a quick personal note to this, I like to do this method of reversed loops in JS: for (var i=something.length; i--;) { // something[i] .. } There's some "duff" method of optimization I read about which sounds pretty good if I recall correctly, check Poi's links for reference. For the most part, I suspect the core of JS efficiency comes from optimizing JS-DOM interaction and "expensive" computation functions, etc. However, always good to be thinking about all aspects of performance. [small](Edited by [url=http://www.ozoneasylum.com/user/2276]Scott[/url] on 07-23-2007 20:27)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »