Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Improving JavaScript performance by deconstructing the type system
Ahn W., Choi J., Shull T., Garzarán M., Torrellas J.  PLDI 2014 (Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation, Edinburgh, UK, Jun 9-11, 2014)496-507.2014.Type:Proceedings
Date Reviewed: Jul 28 2014

JavaScript performance improvement has primarily focused on benchmark measurements. Actual website code tends to resist such improvement as a result of how JavaScript compilers process types. Although JavaScript does not support typing directly, there is an “on the fly” ad hoc typing that takes place during compilation. Based on in-depth analysis of the advanced Chrome V8 compiler, the primary roadblocks to improved performance are inherited prototype objects and method bindings. Changes in the compiler yield significant improvements with the benchmark JSBench applied to JavaScript code from actual websites.

After a helpful introduction, the second section provides details on JavaScript and on the Chrome V8 compiler, a sophisticated just-in-time (JIT) compiler associated with the Google Chrome browser. Next, the authors present the motivation for this research, followed by a detailed section on type predictability issues that focuses on prototypes and method bindings. The fifth section proposes changes to Chrome V8 to address identified typing problems. Next, the impact of these changes is considered, together with how they might affect other proprietary browsers. The results are carefully evaluated in the seventh section. The last two sections provide a summary of related work and conclusions. Indications of future work are given at various points throughout the paper.

The authors have prepared an insightful and well-written report on performance issues related to JavaScript. Developers and researchers will find much to mull over here.

Reviewer:  M. G. Murphy Review #: CR142555 (1410-0873)
Bookmark and Share
  Reviewer Selected
Featured Reviewer
 
 
Javascript (D.3.2 ... )
 
 
Optimization (D.3.4 ... )
 
 
Polymorphism (D.3.3 ... )
 
 
Processors (D.3.4 )
 
Would you recommend this review?
yes
no
Other reviews under "Javascript": Date
JavaScript
Flanagan D. (ed), O’Reilly & Associates, Inc., Sebastopol, CA, 1996. Type: Book (9781565921931)
Jul 1 1997
Javascript: the definitive guide
Flanagan D., O’Reilly & Associates, Inc., Sebastopol, CA, 2002.  916, Type: Book (9780596000486)
Sep 6 2002
Javascript by example
Quigley E., Prentice Hall Professional Technical Reference, Upper Saddle River, NJ, 2003.  752, Type: Book (9780131401624)
Nov 25 2003
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy