Added: 2 years ago
From: GoogleTechTalks
Views: 65,382
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (59)

Sign In or Sign Up now to post a comment!
  • 42:00 At first I thought it was Steve Wozniak

  • I mean, things like changing `while (j<len)` to `while (j--)` might be 2x as fast when `process(item)` does nothing, but, its unlikely that the while condition is going to be your performance bottleneck. Unless you're doing it a few hundred thousand times

  • terrific lecture. but a question: what is the funny thing about the DOM?

  • Things like using 'j--' as your loop condition to reduce evaluations or storing a deep property as a local variable to reduce look up (var name = object.name.name) may help you squeeze a little more performance out of your app, but there is something to be said for code readability. IMHO, in most cases you should not sacrifice code readability for performance, especially in a large app. Many of the performance issues discussed are problems with browser engined, not the JS apps.

  • i dont understand javascript. i would like to know how to read and write it but there are no beginner tutorials.(starting from the begining)

  • pretty programatic lecturing talk! thanks through communicating bilateral intelligence.

  • Eight members of MS IE team watched this video.

  • just to note, documentFragment looks awesome and I was never aware of it, but it seems it still doesn't keep up in ease and speed of the old innerHTML

  • All I can think about now is how much refactoring I need to do.

  • every web developer should watch this

  • As my "Guru" said about this video " If you completed the prototypal inheritance, variable scope, and scope-chain traversal....then you might wanna watch it. It will make a lot of things very clear"

    Thanks a lot "Guru"

  • great speaker with knowhow and great video

    the informations are very useful in the daily use of javascript...

  • 8 people dont understand javascript...

  • Comment removed

  • THE DOM

  • The background noise is pissing me off...

  • Great talk, loved the guy

  • Great video and lots of useful informations... however google employees must have been really drinking the day before or something... the most boring audience ever -.-

  • Oh, that audience had no soul. I laughed at all of those.

  • I'm glad that others share my view on animation in respect to performance. This portion of the presentation on reflow optimization was very informational and useful.

  • This speaker is fantastic, but it seems like his wisdom was lost on Google's employees... they didn't seem to care or react!

  • Thanks....good video

  • Will these tips work for C++ and C#? Especially copying to local variables and loop optimization?

  • @Skinnyuser not much. c++ has no concept of an arbitrary scope chain, object attribute/array lookups are static/fixed-offset-style and handled by the compiler and usually O(1), and loop optimization etc will be taken care of by a decent compiler.

    hth

  • Great presentation!

  • ...or as I like to call it, THE DOM!!!!

    I totally cracked up when he said that.

    Really good tips Zakas. :)

    Now I want to create a Javascript video game called, "THE DOM!".

  • javascipt rules teh internets !!!!1

  • Great stuff

  • will this speed up my runescape

  • Yes

  • EPIC FAIL!!

  • i laughed at THE DOM too! humourless google employees...

  • Great stuff!!

  • Java and JavaScript are not the same thing. Other than that, this comment is completely valid. :\

  • Javascript and Java are not related in any other form than their names.

    In terms of slowness, and virtualization, javascript is even much slower than java, because java at least compiles to bytecode (and can do pretty good optimizations because of it's strong typed syntax), whereas javascript is interpreted from source code (until now... =P)..

    Look, don't take me wrong, I'm a C/C++ person too. But I do have respect for Java and those "tiny apps" called eclipse, OpenOffice, etc.

  • OpenOffice is mostly written in C++ though.

  • Well.... where to start... if you are not sure about the difference between java and javascript, I think you might be a little naive on other things as well. Nothing bad with that, but since I've been programming in some way for 20+ years, I might give you my 2 cents.

    If you want most programs to run fast, write them in a high level language and spend the time by learning to use the provided libraries, and improve the architecture. Don't turn to pointers for performance. Btw my choice is Python.

  • Comment removed

  • You're happy with python yet knock java for performance ?

  • @thirdimage

    Java!=Javascript

  • The DOM was great.

  • Very pragmatic presentation, real situations with solutions which are measured and tested. Nicholas Zakas is a great speaker for me. Thank you for sharing your knowledge!

  • @keemor

    He is a very good speaker and makes some interesting points, I just wish he didn't make every phrase he utters sound like he is asking a question!

  • @keemor Only few tech talk or Google videos has the quality of this video. Straight to the point, and which every other talk was this easy to understand for beginners. He is good!

  • as a newb web developer, I appreciate this presentation

  • so do I. Thank you. It was a pleasure listening to you guys.

  • The DOM!!! I laughed so don't feel bad!

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more