Google I/O 2012 - Breaking the JavaScript Speed Limit with V8
344,973
Subscription preferences
Loading...
Sign in to YouTube
Sign in to YouTube
Sign in to YouTube
Published on Jun 29, 2012
Daniel Clifford
Are you are interested in making JavaScript run blazingly fast in Chrome? This talk takes a look under the hood in V8 to help you identify how to optimize your JavaScript code. We'll show you how to leverage V8's sampling profiler to eliminate performance bottlenecks and optimize JavaScript programs, and we'll expose how V8 uses hidden classes and runtime type feedback to generate efficient JIT code.
Attendees will leave the session with solid optimization guidelines for their JavaScript app and a good understanding on how to best use performance tools and JavaScript idioms to maximize the performance of their application with V8.
For all I/O 2012 sessions, go to https://developers.google.com/io/
-
Category
-
License
Standard YouTube License
Loading...
Loading...
Loading...
Loading...
Loading...
-
43:07
Why Linux Sucks | LFNW 2012by jupiterbroadcastingFeatured
330,713
-
43:09
Google I/O 2012 - SQL vs NoSQL: Battle of the Backendsby GoogleDevelopers
119,929 views
-
1:02:07
Google I/O 2012 - High Performance HTML5by GoogleDevelopers
26,499 views
-
51:44
Google I/O 2012 - How we Make JavaScript Widgets Screamby GoogleDevelopers
14,988 views
-
49:45
Google I/O 2012 - Go in Productionby GoogleDevelopers
24,094 views
-
1:06:51
Douglas Crockford: Advanced JavaScriptby yuilibrary
54,649 views
-
33:25
Javascript: Your New Overlordby MarakanaTechTV
14,584 views
-
56:23
Speed Up Your JavaScriptby GoogleTechTalks
94,060 views
-
48:11
Building a JavaScript-Based Game Engine for the Webby GoogleTechTalks
219,155 views
-
24:30
Fluent 2012: Paul Irish, "Javascript Development Workflow of 2013"by OreillyMedia
54,047 views
-
1:49:55
Douglas Crockford: The JavaScript Programming Languageby yuilibrary
88,851 views
-
30:43
Amazing Google Glasses Demonstration at Google I/O 2012by minipcpro
1,439,735 views
-
25:43
Fluent 2012: Brendan Eich, "JavaScript at 17"by OreillyMedia
22,774 views
-
1:06:34
Introduction to Node.js with Ryan Dahlby MarakanaTechTV
416,894 views
-
9:38
Why is Google Chrome Fast? Spotlight on V8 JavaScript Engineby Google Chrome
46,252 views
-
40:29
Google I/O 2012 - Use What You Know: HTML and JavaScript in Apps Scriptby GoogleDevelopers
13,647 views
-
29:16
Node.js Explainedby Altamira TC
19,229 views
-
48:26
Google I/O 2012 - Better Web App Development Through Toolingby GoogleDevelopers
64,077 views
-
1:19:24
Google I/O 2012 - Keynote Day 2by GoogleDevelopers
135,058 views
-
41:54
Google I/O 2012 - WebRTC: Real-time Audio/Video and P2P in HTML5by GoogleDevelopers
75,967 views
- Loading more suggestions...
Top Comments
James Newton 11 months ago
Actual talk starts at 10:00... before that it's fluff.
Sign in to YouTube
Sign in to YouTube
hdzsound 11 months ago
to me correcting a bug (out bound) is not code optimization ...
Sign in to YouTube
Sign in to YouTube
All Comments (39)
VÃt Novotný 3 months ago
It's not a bug, it's a feature. Javascript, unlike C++ but much like other scripting languages, was always intended for the speed of development rather than execution.
Sign in to YouTube
Sign in to YouTube
J Parril 3 months ago
That's fair. He probably should have used an example that wasn't such an obvious mistake. But to say v8 isn't javascript is a little harsh, javascript isn't v8, and v8 does things differently than most engines, but they're smart enough to avoid memory leaks when using outbound locations in an array. I think he actually mentioned growing large arrays as the correct convention.
Sign in to YouTube
Sign in to YouTube
hdzsound 3 months ago
Out of bound array access (read/write) is bad and the final result is unexpected.
V8 is not JavaScript so out of bound can result in others malfunction in other JS engine.
This was a simple example of a bug (not an optimization) the result here is hopefully only a slow loop.
But the result could be most worst, memory leak, heap memory corruption, etc. now, anything can happen.
Sign in to YouTube
Sign in to YouTube
J Parril 3 months ago
But it's not a bug. If the code is correct javascript, but slow javascript, that is not definable as a bug.
Sign in to YouTube
Sign in to YouTube
J Parril 3 months ago
This is a big problem to developers. The reason you haven't seen a change in performance is because the browsers don't do anything that requires performance to run. If a webpage pauses for a noticeable amount of time in IE6 than that web page is broken. The goal here is not to have performance which is noticeable to guys like you, who don't do anything interesting with a browser. It's to make interesting things possible. In the mean time, you can enjoy the spell check, firewall, and advanced UI.
Sign in to YouTube
Sign in to YouTube
alexgrinkov 3 months ago
As a user I haven't experienced any change. Sites from today feel pretty much like before the whole JS ending war started. The speed gains are marginal outside synthetic tests unless you try to play a JavaScript port of Quake in the browser...
Sign in to YouTube
Sign in to YouTube
lennyhome 4 months ago
Now opening popups even faster with JavaScript!
Sign in to YouTube
Sign in to YouTube
Jon47 7 months ago
Really awesome talk, thank you!
Sign in to YouTube
Sign in to YouTube