计算机与现代化Issue(10):66-70,5.DOI:10.3969/j.issn.1006-2475.2014.10.016
Chrome V8引擎中的 JavaScript数组实现分析与性能优化
Implementation Analysis and Performance Optimization for JavaScript Array in Chrome V8
刘旭1
作者信息
- 1. SAP中国研究院商务智能部,上海 201203
- 折叠
摘要
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.关键词
V8/Chrome/JavaScript/数组/性能/优化Key words
V8/Chrome/JavaScript/array/performance/optimization分类
信息技术与安全科学引用本文复制引用
刘旭..Chrome V8引擎中的 JavaScript数组实现分析与性能优化[J].计算机与现代化,2014,(10):66-70,5.