首页 | 本学科首页   官方微博 | 高级检索  
     

Chrome V8引擎中的 JavaScript数组实现分析与性能优化
引用本文:刘旭.Chrome V8引擎中的 JavaScript数组实现分析与性能优化[J].计算机与现代化,2014,0(10):66-70.
作者姓名:刘旭
作者单位:SAP中国研究院商务智能部,上海,201203
摘    要:随着实际应用中JavaScript程序的复杂度日益提高,程序执行的性能问题变得突出,而优化JavaScript程序中数组的使用方式可以提高程序效率。通过分析JavaScript数组的特点,结合广泛应用的Chrome V8引擎的源程序,描述V8对JavaScript数组的实现细节,重点分析Fast Elements和Dictionary Elements两种数组存储模式,给出对JavaScript数组性能优化的基本原则,并举例分析4个实际应用中可以优化的程序片段。

关 键 词:V8  Chrome  JavaSeript  数组  性能  优化

Implementation Analysis and Performance Optimization for JavaScript Array in Chrome V8
LIU Xu.Implementation Analysis and Performance Optimization for JavaScript Array in Chrome V8[J].Computer and Modernization,2014,0(10):66-70.
Authors:LIU Xu
Affiliation:LIU Xu ( Department of Business Intelligence of SAP Labs China, Shanghai 201203, China)
Abstract: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.
Keywords:V8  Chrome  JavaScript  array  performance  optimization
本文献已被 维普 万方数据 等数据库收录!
点击此处可从《计算机与现代化》浏览原始摘要信息
点击此处可从《计算机与现代化》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号