• Email
  • Like
  • Save
  • Private Content
  • Embed
 

Speed Up Your JavaScript

by

  • 30,318 views

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

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

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

© All Rights Reserved

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel

34 Embeds 1,492

http://www.jornaljava.com 437
http://blog.dreamcss.com 417
https://www.ibm.com 219
http://blog.vivekjishtu.com 126
http://www.slideshare.net 94
http://www.ilovejs.net 54
http://www.techpresentations.org 52
http://hi.chibaole.com 25
http://www.techgig.com 15
http://blogspot.hijava.net 10
http://previewdiscussions.zoho.com 10
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://www.linkedin.com 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...

Statistics

Likes
73
Downloads
894
Comments
5
Embed Views
1,492
Views on SlideShare
28,826
Total Views
30,318

15 of 5 previous next Post a comment

  • lingzuer lingzuer Nicholas C.Zakas 2 years ago
    Are you sure you want to
  • 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
  • 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
  • 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
  • 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
Post Comment
Edit your comment

Speed Up Your JavaScript Speed Up Your JavaScript Presentation Transcript