Speed Up Your JavaScript

  Рет қаралды 135,727

Google TechTalks

Google TechTalks

Күн бұрын

Пікірлер: 61
@kartheepan84
@kartheepan84 12 жыл бұрын
Excellent presentation. The best part of the presentation is that every small code changes and how would affect in the different browser with statistics.
@KPSrinivasa
@KPSrinivasa 14 жыл бұрын
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"
@keemor
@keemor 15 жыл бұрын
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!
@leviroberts3085
@leviroberts3085 11 жыл бұрын
Premature optimization is still a big thing. You generally don't have to worry about these things most of the time. Only optimize when you need to. Usually disk I/O, network, etc are the bottlenecks you have to worry about most of the time.
@steveburrus5526
@steveburrus5526 9 жыл бұрын
+Levi Roberts you don't think that functioins and their scopes play into how fast Javascript is for web develoment?
@leviroberts3085
@leviroberts3085 9 жыл бұрын
Steve Burrus I didn't say that. What I was trying to say is that it's unnecessary for developers to spend too much valuable time and company resources optimizing things before they are even a problem. Most of the time, smaller optimizations never actually become a problem. It's one of those things that's bitten several seasoned developers time and time again, me included. It's best to set up a monitoring solution with logs to find out where/what your team needs to focus on the most - then work outward from there. Just don't let it become a problem first. I'll repeat myself once more for clarity. Most generally disk I/O (including databases), network, and other dependencies are usually the bottlenecks that hit first in sever-side apps like Javascript (nodejs) and Go. Focus on minimizing those first before worrying about the functional aspects in your application layer.
@steveburrus5526
@steveburrus5526 9 жыл бұрын
+Levi Roberts POkay Levi I will defer to you. You a re probably more of an expert about this than I am. I just know a little about JavaScript myself.
@sing-tech
@sing-tech 9 жыл бұрын
So amazing, the best tech talk I've seen.
@vagabond268
@vagabond268 10 жыл бұрын
Very helpful insight of the internals, i liked the way Nicholas explained scope chain and reflows. Thank you.
@TheHihoGuy
@TheHihoGuy 14 жыл бұрын
great speaker with knowhow and great video the informations are very useful in the daily use of javascript...
@krone01
@krone01 12 жыл бұрын
absolutely loved this video very insightful and he speaks in a manner which makes it very easy to understand
@s3340985
@s3340985 11 жыл бұрын
Great suggestions for the loops! Would've never thought to flip them if it wasn't for this presentation
@wesw02
@wesw02 13 жыл бұрын
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.
@DarrenChen
@DarrenChen 15 жыл бұрын
as a newb web developer, I appreciate this presentation
@drewhjava
@drewhjava 12 жыл бұрын
It's the web man. Last javascript language update was in 1999(not including the recent one). People are still using 12 year old browsers and 10 year old operating systems. Everything is relavant.
@FiddlingOnTheRoof
@FiddlingOnTheRoof 11 жыл бұрын
I knew about scope chain and the need to always declare var to stay local (otherwise it becomes a global variable and that's SLOW [not to mention being at greater risk of collision!]), but there's a LOT in this that I never knew about!
@hertzbergny
@hertzbergny 11 жыл бұрын
the sick part is that this was 4 years ago, showing a chart with Chrome 3 beta, and I'm using Chrome 29 as we speak.
@Hex72
@Hex72 11 жыл бұрын
Awesome talk, a great insight into the caveats of JavaScript. I have so many loops to optimise in my game now...
@karolbielen2090
@karolbielen2090 6 ай бұрын
15 years ago. Now just one epoch, but several at least. Is this video still viable?
@graczmisiek
@graczmisiek 11 жыл бұрын
Valuable tips and unique sense of humour.
@matchflixCH
@matchflixCH 10 жыл бұрын
Are the main points in the summary at 46:00 still valid today?
@EricPeeters91
@EricPeeters91 11 жыл бұрын
@34:05 addChild is supposed to be appendChild?
@aliancemd
@aliancemd 11 жыл бұрын
That's the thing. Now with JIT compilers, how relevant is this? The DOM thing for sure didn't change but the rest... For example, the depth navigation should not be a problem with a compiler now... I am interested too...
@neoreloading
@neoreloading 11 жыл бұрын
Excellent Session!... kudos.. keep them coming :)
@SudeepMakwana
@SudeepMakwana 11 жыл бұрын
You R One Of Best @Zakas.... i m your Fan ....
@VicVlasenko
@VicVlasenko 12 жыл бұрын
good job. 51:30 if there are a lot of global variables (I saw >200 in some apps) it works 2-3 times faster, when grouping them into an object
@arbindvishwakarma722
@arbindvishwakarma722 10 жыл бұрын
Thanks Nicholas for giving such a important key aspect of javascript.
@stevenmildred55
@stevenmildred55 11 жыл бұрын
Great suggestions, didn't really think of these ideas to speed up JS.
@RickBeacham
@RickBeacham 12 жыл бұрын
Hey where did you get that profile picture from? I recognize it from another site.
@RickBeacham
@RickBeacham 12 жыл бұрын
Good presentation. Learned alot.
@thirdimage
@thirdimage 15 жыл бұрын
...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!".
@marcky4eva
@marcky4eva 12 жыл бұрын
Is the guy asking the question at 53:30 Robert himler?
@deeroks1
@deeroks1 12 жыл бұрын
wish more sites would use this insight.
@mururoa7024
@mururoa7024 11 жыл бұрын
How much of this is still relevant with the latest JS engines? (Chrome 26, IE10, FF19...)
@LVEB001
@LVEB001 15 жыл бұрын
OpenOffice is mostly written in C++ though.
@flowewritharoma
@flowewritharoma 13 жыл бұрын
pretty programatic lecturing talk! thanks through communicating bilateral intelligence.
@yahikouzumaki4955
@yahikouzumaki4955 11 жыл бұрын
Really interesting speech. I need to optimize my DOM accesses now.
@clivend
@clivend 7 жыл бұрын
do you think this is still actual in 2018 somehow?
@raduandrei1289
@raduandrei1289 11 жыл бұрын
Very informative talk!
@neocoders
@neocoders 13 жыл бұрын
All I can think about now is how much refactoring I need to do.
@Hemo1231000
@Hemo1231000 14 жыл бұрын
Thanks....good video
@warwound
@warwound 15 жыл бұрын
Great stuff!!
@Blinkwing
@Blinkwing 13 жыл бұрын
42:00 At first I thought it was Steve Wozniak
@whatnow1204
@whatnow1204 13 жыл бұрын
@MrDotMontage Buy a book. It's very much worth it. You can't really experience the good and bad parts in javascript from these tutorials. Books is the way to go.
@ramsp35
@ramsp35 11 жыл бұрын
Cool.. Thanks. That helped me a lot.
@yuanwang5253
@yuanwang5253 11 жыл бұрын
Cool, Very Informative.
@TimVerweij
@TimVerweij 15 жыл бұрын
The DOM was great.
@PuercoPop
@PuercoPop 15 жыл бұрын
The DOM!!! I laughed so don't feel bad!
@BilalHijab
@BilalHijab 15 жыл бұрын
will this speed up my runescape
@folding12
@folding12 15 жыл бұрын
Java and JavaScript are not the same thing. Other than that, this comment is completely valid. :\
@theimben
@theimben 15 жыл бұрын
Yes
@thirdimage
@thirdimage 15 жыл бұрын
Java programs are the slowest most resource hungry programs out there. Not to mention, Java's virtual machine tends to bog down after running for awhile on your server. Python doesn't seem have these problems.
@khajisavva
@khajisavva 14 жыл бұрын
@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!
@ron7416
@ron7416 12 жыл бұрын
Nice.
@Cossner
@Cossner 12 жыл бұрын
THE DOOOOOOM
@nathan87
@nathan87 15 жыл бұрын
i laughed at THE DOM too! humourless google employees...
@hertzbergny
@hertzbergny 11 жыл бұрын
scratch that. Chrome 2 beta.
@jamesgreene2061
@jamesgreene2061 14 жыл бұрын
This speaker is fantastic, but it seems like his wisdom was lost on Google's employees... they didn't seem to care or react!
@EdmundDipple
@EdmundDipple 14 жыл бұрын
THE DOM
@robson_sousa
@robson_sousa 11 ай бұрын
Today is February 9th, 2024.
@Rayden150
@Rayden150 14 жыл бұрын
8 people dont understand javascript...
Introduction to JavaScript and Browser DOM
1:06:01
Google TechTalks
Рет қаралды 133 М.
JavaScript: The Good Parts
1:03:48
Google TechTalks
Рет қаралды 585 М.
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
CouchDB: Relaxing Offline JavaScript
57:32
Google TechTalks
Рет қаралды 27 М.
Nicholas Zakas: Scalable JavaScript Application Architecture
52:23
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 314 М.
High Performance Web Sites and YSlow
1:00:34
Google TechTalks
Рет қаралды 89 М.
How To Design A Good API and Why it Matters
1:00:19
Google TechTalks
Рет қаралды 442 М.
Google I/O 2011: Learning to Love JavaScript
1:03:26
Google for Developers
Рет қаралды 234 М.
Node.js: JavaScript on the Server
59:59
Google TechTalks
Рет қаралды 134 М.
"The Clean Code Talks  -- Inheritance, Polymorphism, & Testing"
38:25
Google TechTalks
Рет қаралды 434 М.
Faster HTML and CSS: Layout Engine Internals for Web Developers
1:01:16
Google TechTalks
Рет қаралды 96 М.
Evolution of software architecture with the co-creator of UML (Grady Booch)
1:30:43
The Pragmatic Engineer
Рет қаралды 94 М.
ТЕЛЕФОН МЕНЯЕТ ЦВЕТ😅 #upx
0:34
RanF
Рет қаралды 639 М.
Pixel 7 и 7 Pro с Face ID - лучше iPhone 14 Pro!
21:12
Rozetked
Рет қаралды 457 М.
DESAFIO DOS COPOS #shorts
0:38
Natan por Aí
Рет қаралды 34 МЛН
Making of Marble in Factory #shorts #ashortaday #indianstreetfood
0:59
Indian Food Vlogs
Рет қаралды 6 МЛН
Когда перепутал график девушек😁🐣
0:24
Alexey Merinov
Рет қаралды 3,1 МЛН