Loading Time Reduction for Emscripten-Generated Asm.js Programs

碩士 === 國立交通大學 === 資訊科學與工程研究所 === 104 === JavaScript is the primary programming language for web applications and has been used in many popular web applications. In recent years, some web applications are getting more complex. Therefore, asm.js, which is a subset of JavaScript, is designed to enable...

Full description

Bibliographic Details
Main Authors: Li, Bing-Mou, 李炳謀
Other Authors: You, Yi-Ping
Format: Others
Language:zh-TW
Published: 2016
Online Access:http://ndltd.ncl.edu.tw/handle/9xqgcq
Description
Summary:碩士 === 國立交通大學 === 資訊科學與工程研究所 === 104 === JavaScript is the primary programming language for web applications and has been used in many popular web applications. In recent years, some web applications are getting more complex. Therefore, asm.js, which is a subset of JavaScript, is designed to enable the performance improvements for those web applications. However, asm.js programs have a problem of larger code size than JavaScript programs, which counteracts the benefit from the reduced execution time. Therefore, reducing loading time of asm.js programs is an important matter. In this thesis, we propose ASMJSMini, an asm.js minifier, to reduce the code size of asm.js programs that the optimized asm.js programs are meeting asm.js specification. We propose library extractor and dynamic loading to reuse the same library to reduce the download time. The experimental results show that ASMJSMini had a 50% reduction in code size and the dynamic loading approach had a 49% reduction in download time of asm.js programs.