×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Speed Up Your JavaScript

by Front End Guy at Box on Jun 03, 2009

  • 33,643 views

Describes common JavaScript performance issues and how to work around them.

Describes common JavaScript performance issues and how to work around them.

Statistics

Views

Total Views
33,643
Views on SlideShare
31,940
Embed Views
1,703

Actions

Likes
76
Downloads
938
Comments
5

34 Embeds 1,703

http://blog.dreamcss.com 577
http://www.jornaljava.com 437
https://www.ibm.com 243
http://blog.vivekjishtu.com 143
http://www.slideshare.net 94
http://www.ilovejs.net 54
http://www.techpresentations.org 52
http://hi.chibaole.com 25
http://www.techgig.com 19
http://blogspot.hijava.net 11
http://previewdiscussions.zoho.com 10
http://www.linkedin.com 7
http://core.traackr.com 4
http://127.0.0.1 3
http://translate.googleusercontent.com 2
http://twitter.com 2
http://css9.net 2
http://colorlabs.blogspot.com 2
http://colorlabs.blogspot.com.ar 1
https://twimg0-a.akamaihd.net 1
http://a0.twimg.com 1
http://www.techgig.timesjobs.com 1
http://a0.twimg.com 1
http://www.e-presentations.us 1
https://previewdiscussions.zoho.com 1
http://www.webjx.com 1
http://www.poluoluo.com 1
http://discussions.zoho.com 1
https://discussions.zoho.com 1
http://us-w1.rockmelt.com 1
http://static.slidesharecdn.com 1
http://azcode.tumblr.com 1
url_unknown 1
http://localhost 1
More...

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

15 of 5 previous next Post a comment

  • lingzuer lingzuer Nicholas C.Zakas 3 years ago
    Are you sure you want to
    Your message goes here
    Processing…
  • nzakas Nicholas Zakas, Front End Guy at Box You're welcome. I've actually been trying to figure out if there's a way to automatically detect stuff like this, but it would get a level of the JS engine that is way out of my realm of knowledge. :) 4 years ago
    Are you sure you want to
    Your message goes here
    Processing…
  • paul.irish Paul Irish, Developer Advocate at Google Chrome Gotcha. It's certainly hard to estimate how many scope chain hops you have in your entire application. :)

    Thanks for the detail.
    4 years ago
    Are you sure you want to
    Your message goes here
    Processing…
  • nzakas Nicholas Zakas, Front End Guy at Box What we're talking about here is really orders of magnitude. My tests involved using a single variable for a single operation. Images statements that are using multiple variables at the same time in a large web application with millions of lines of code. If you do anything a small enough number of times, the performance impact gets minimized. It's when you multiply it out that you start to see issues.

    Another interesting note is that times have only gotten reasonable recently. I had to remove IE6 and FF2 from the graph because it distorted the rest of the data. This shows that browsers are going in the right direction, we're just not quite there yet.
    4 years ago
    Are you sure you want to
    Your message goes here
    Processing…
  • paul.irish Paul Irish, Developer Advocate at Google Chrome I've often wondered about scope chain traversing. It's mentioned in a number of javascript optimization recommendations, but I hadn't seen any data on it until here (slides 17-18).
    So if this data is over 200,000 iterations, and the worst delta is 20ms for 1 chain traverse, then we're looking at ~0.0001ms per. Right?

    And really only IE that has a measurable difference. I guess I'm not convinced yet that this has much impact. :/
    4 years ago
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Speed Up Your JavaScript Speed Up Your JavaScript Presentation Transcript