October 25, 2005
Like An Elephant In Your Backyard
There really is a lot of rublish information out there on the Internet, presented by so called "experts". While researching javascript performance tuning for a current project, I came across these charming nuggets:
Iterating loops backwards (decrementing) is faster than incrementing, and when looping though DOM objects by tagname, it's faster to include the getElementsByTagName is the for loop evaluation statement. I wonder how many people blindly accept this stuff?
Profiling the above coding suggestions in gecko (Firefox) and trident (Internet Explorer 6), showed that in all cases the suggestions resulted in speeds that were either the same or slower. In fact, the getElementsByTagName suggestion under Internet Explorer 6 increased the execution time by 250%, not exactly a performance increase! lol.
Posted by Matt at October 25, 2005 3:58 PM
Fraggle Chitter Chatter
Have Your Say
The Great Hall
Historial Postcards
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
Ask Marjorie