Font Size: a A A

Research And Implementation Of JavaScript Performance Optimization Based On WebAssembly

Posted on:2020-12-21Degree:MasterType:Thesis
Country:ChinaCandidate:C XueFull Text:PDF
GTID:2428330590481883Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the development of Internet technology,the application of Web applications is becoming more and more extensive,so the role of Java Script is not to deal with simple DOM interactions as at the beginning of design,but also is needed to support computationally intensive operations such as graphics processing,physics engines and virtual reality.However,Java Script's design philosophy based on ease of use has made it impossible to efficiently cope with heavy processing demands,especially on platforms with limited resources.How to effectively improve the efficiency of Java Script code execution is critical to the development of web applications.Due to the increasing complexity of Web applications,the use of plug-ins in the past has implemented complex and intensive computing functions on the Web side,but the usage rate has gradually declined due to security and performance issues.Although the use of just-in-time compilation technology on the Web has greatly improved the performance of Java Script,optimization and de-optimization and extra memory overhead make it impossible to cope with complex applications,and the mobile platform with limited configuration resources is more to be significant.In order to solve the shortcomings of the above methods,the web application has more efficient execution performance.We use the latest Web Assembly technology to propose a Java Script code performance optimization solution.On the one hand,Web Assembly is used to optimize performance-related computationally intensive code segments;on the other hand,code segment merge methods are used to reduce the performance overhead of data interaction.This article studies the following aspects:(1)Investigate Java Script performance issues and analyze the causes of performance issues.And analyze the current Java Script code optimization scheme,including Compiler technology,variable type simulation and partial solver and other major optimization schemes.Detailed analysis of the basic principles of these optimization program,and combined with the cause of Java Script performance defects to analyze the shortcomings of the optimization scheme.(2)Discuss the feasibility of using Web Assembly to optimize the performance of Java Script.By analyzing the applicable scope and design features of Web Assembly,describe the design ideas and implementation principles of the Java Script code performance optimization solution.Detailed description of the design of the code segment conversion module and code segment merge rules.(3)For the method proposed in this paper,Design and implement the prototype optimization system JSOPW(Java Script optimization by Web Assembly),introduce the main modules of the system,and give the key algorithm design description in each module.Select multiple real-world web applications as test cases,and compare them with the existing technology to collect the space-time overhead of the test cases before and after optimization.And for the versatility of multi-browser platform verification optimization scheme,the effectiveness of the optimization scheme is verified by comparative evaluation experiments.
Keywords/Search Tags:JavaScript performance optimization, code segment merge rules, transcoding, WebAssembly
PDF Full Text Request
Related items