期刊文献+

Chrome V8引擎中的JavaScript数组实现分析与性能优化 被引量:9

Implementation Analysis and Performance Optimization for JavaScript Array in Chrome V8
下载PDF
导出
摘要 随着实际应用中JavaScript程序的复杂度日益提高,程序执行的性能问题变得突出,而优化JavaScript程序中数组的使用方式可以提高程序效率。通过分析JavaScript数组的特点,结合广泛应用的Chrome V8引擎的源程序,描述V8对JavaScript数组的实现细节,重点分析Fast Elements和Dictionary Elements两种数组存储模式,给出对JavaScript数组性能优化的基本原则,并举例分析4个实际应用中可以优化的程序片段。 With the complexity of JavaScript applications increasing, performance issues of JavaScript become increasingly promi-nent, but to optimize the use of JavaScript array can improve program efficiency.This paper, by analyzing the characteristics of JavaScript arrays and reviewing the source code of Chrome V8 JavaScript engine, describes the implementation details for JavaS-cript array in V8, and focuses on the Fast Elements and Dictionary Elements array storage modes.It also gives the basic princi-ples of performance optimization of JavaScript array and four examples to show how to analyze and optimize programs in practical applications.
作者 刘旭
出处 《计算机与现代化》 2014年第10期66-70,共5页 Computer and Modernization
关键词 V8 CHROME JAVASCRIPT 数组 性能 优化 V8 Chrome JavaScript array performance optimization
  • 相关文献

参考文献15

  • 1David Flanagan.JavaScript: The Definitive Guide[M].6th ed.USA: OReilly Media,2011.
  • 2W3schools.com.Browser Statistics[EB/OL].http://www.w3schools.com/browsers/browsers_stats.asp,2014-06-22.
  • 3V8 JavaScript Engine Developers.Project Information[EB/OL].https://code.google.com/p/v8/,2014-06-22.
  • 4Open Source Initiative.The BSD 3-Clause License[EB/OL].http://opensource.org/licenses/BSD-3-Clause,2014-06-22.
  • 5V8 JavaScript Engine Developers.Design Elements[EB/OL].https://developers.google.com/v8/design,2014-06-22.
  • 6Brian W Kernighan,Dennis M Ritchie.C Programming Language[M].2nd ed.Englewood Cliffs: Prentice Hall,1988.
  • 7Stoyan Stefanov.JavaScript Patterns[M].USA: O'Reilly Media,2010.
  • 8Douglas Crockford.JavaScript: The Good Parts[M].USA: O'Reilly Media,2008.
  • 9李世胜,程歩奇,李晓峰,孙广中,陈国良.基于预测的JavaScript类型系统研究[J].计算机研究与发展,2012,49(2):421-431. 被引量:9
  • 10V8 JavaScript Engine Members.V8 JavaScript Engine Source Code[CP/OL].http://v8.googlecode.com/svn/trunk/src/runtime.cc,2014-05-30.

二级参考文献15

  • 1韩芝萍.浅谈C代码优化与运用[J].农业网络信息,2009(2):130-131. 被引量:2
  • 2张延红,崔雪冰,王康平.最优二叉树在多分支结构程序设计中的应用[J].平顶山工学院学报,2006,15(2):36-38. 被引量:2
  • 3Sun Microsystems and Netscape Inc. Netscape and Sun announce Javascript(TM) : The open, cross-platform object scripting language for enterprise networks and the Internet [EB/OL]. (1995-12-04) [2010-01-01]. http://web, archive. org/web/20070916144913/http://wp, netscape, eom/newsref/ pr/newsrelease67, html.
  • 4Gal A, Eich B, Shaver M, et al. Trace based just-in-time type specialization for dynamic languages [C] //Proc of the 2009 ACM SIGPLAN Conf on Programming Language Design and Implementation. New York: ACM, 2009: 465- 478.
  • 5Anderson C, Giannini P, Drossopoulou S. Towards type inference for JavaScript [G] //LNCS 3586: ECOOP 2005- Object-Oriented Programming. Berlin: Springer, 2005: 428- 452.
  • 6Jang D, Choe K M. Points-to analysis for JavaScript [C] // Proc of the 2009 ACM Syrup on Applied Computing. New York: ACM, 2009:1930-1937.
  • 7Thiemann P. Towards a type system [or analyzing ]avascript programs [C] //LNCS 3444 : European Symp on Programm ng. Berlin: Spr nger, 2005: 408-422.
  • 8Heidegger P, Thiemann P. Recency types for dynamically- typed, object-based languages [EB/OL]. ( 2009-01-24 ) E2010-01 01]. http://www, cs. cmu. edu/-aldrieh/FOOL09/ heidegger, pdf.
  • 9Balakrishnan G, Reps T. Recency-abstraction for heap- allocated storage [G] //LNCS 4134: Proc of the 13th Int Static Analysis Symposium (SAS'06). Berlin: Springer, 2006:221-239.
  • 10Jensen S H, Moiler A, Thiemann P. Type analysis for JavaScript [C] //Proc of the 16th Int Syrup on Static Analysis. Berlin: Springer, 2009:238-255.

共引文献8

同被引文献48

引证文献9

二级引证文献12

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部