在网络通信安全的情况下,通过提前编译JavaScript来加快React Native应用程序的启动时间

IF 2.5 4区 计算机科学 Q3 TELECOMMUNICATIONS
Ziye Li, Ruiqi Zhao, Hanke Zhang, Xiaohua Shi
{"title":"在网络通信安全的情况下,通过提前编译JavaScript来加快React Native应用程序的启动时间","authors":"Ziye Li,&nbsp;Ruiqi Zhao,&nbsp;Hanke Zhang,&nbsp;Xiaohua Shi","doi":"10.1002/ett.70232","DOIUrl":null,"url":null,"abstract":"<div>\n \n <p>React Native is a popular framework for building cross-platform mobile applications that takes advantage of the popularity of JavaScript and the React framework. For a long time, JavaScript has been considered a language that is not suitable for AOT (ahead-of-time) compilation due to its dynamic nature, and most JavaScript applications, for example React Native applications, rely on just-in-time compilation to achieve high performance. In this paper, we present JWST, an ahead-of-time JavaScript compiler that compiles JavaScript to a number of desktop and mobile targets in the context of secure network communications, including x86, x86_64, ARM64, and WebAssembly, etc. The compiler is built on top of the existing JavaScript interpreter QuickJS. By compiling the scripts of React Native applications ahead of time, we are able to achieve significant performance improvements in startup time, which is important for user experience. Compared to using the stock JavaScriptCore runtime, we are able to cut the startup time of React Native applications by 29% on average, and up to 38% on an ARM64 device with a Kirin 990E CPU. This not only improves the user experience but also enhances the response speed and stability of applications in a secure network communication environment, providing new ideas for safe and efficient mobile application development.</p>\n </div>","PeriodicalId":23282,"journal":{"name":"Transactions on Emerging Telecommunications Technologies","volume":"36 9","pages":""},"PeriodicalIF":2.5000,"publicationDate":"2025-08-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Accelerating Startup Time of React Native Applications by Compiling JavaScript Ahead-Of-Time Under Network Communication Security\",\"authors\":\"Ziye Li,&nbsp;Ruiqi Zhao,&nbsp;Hanke Zhang,&nbsp;Xiaohua Shi\",\"doi\":\"10.1002/ett.70232\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div>\\n \\n <p>React Native is a popular framework for building cross-platform mobile applications that takes advantage of the popularity of JavaScript and the React framework. For a long time, JavaScript has been considered a language that is not suitable for AOT (ahead-of-time) compilation due to its dynamic nature, and most JavaScript applications, for example React Native applications, rely on just-in-time compilation to achieve high performance. In this paper, we present JWST, an ahead-of-time JavaScript compiler that compiles JavaScript to a number of desktop and mobile targets in the context of secure network communications, including x86, x86_64, ARM64, and WebAssembly, etc. The compiler is built on top of the existing JavaScript interpreter QuickJS. By compiling the scripts of React Native applications ahead of time, we are able to achieve significant performance improvements in startup time, which is important for user experience. Compared to using the stock JavaScriptCore runtime, we are able to cut the startup time of React Native applications by 29% on average, and up to 38% on an ARM64 device with a Kirin 990E CPU. This not only improves the user experience but also enhances the response speed and stability of applications in a secure network communication environment, providing new ideas for safe and efficient mobile application development.</p>\\n </div>\",\"PeriodicalId\":23282,\"journal\":{\"name\":\"Transactions on Emerging Telecommunications Technologies\",\"volume\":\"36 9\",\"pages\":\"\"},\"PeriodicalIF\":2.5000,\"publicationDate\":\"2025-08-25\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Transactions on Emerging Telecommunications Technologies\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://onlinelibrary.wiley.com/doi/10.1002/ett.70232\",\"RegionNum\":4,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"TELECOMMUNICATIONS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Transactions on Emerging Telecommunications Technologies","FirstCategoryId":"94","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1002/ett.70232","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"TELECOMMUNICATIONS","Score":null,"Total":0}
引用次数: 0

摘要

React Native是一个流行的框架,用于构建跨平台移动应用程序,它利用了JavaScript和React框架的流行。很长一段时间以来,JavaScript一直被认为是一种不适合AOT(提前)编译的语言,因为它的动态特性,大多数JavaScript应用程序,例如React Native应用程序,都依赖于即时编译来实现高性能。在本文中,我们介绍了JWST,这是一个提前的JavaScript编译器,它可以在安全网络通信的环境下将JavaScript编译到许多桌面和移动目标,包括x86, x86_64, ARM64和WebAssembly等。编译器构建在现有的JavaScript解释器QuickJS之上。通过提前编译React Native应用程序的脚本,我们能够在启动时间内实现显著的性能改进,这对用户体验很重要。与使用现有的JavaScriptCore运行时相比,我们能够将React Native应用程序的启动时间平均缩短29%,在带有麒麟990E CPU的ARM64设备上最多可缩短38%。这不仅改善了用户体验,还提高了应用在安全网络通信环境下的响应速度和稳定性,为安全高效的移动应用开发提供了新的思路。
本文章由计算机程序翻译,如有差异,请以英文原文为准。

Accelerating Startup Time of React Native Applications by Compiling JavaScript Ahead-Of-Time Under Network Communication Security

Accelerating Startup Time of React Native Applications by Compiling JavaScript Ahead-Of-Time Under Network Communication Security

React Native is a popular framework for building cross-platform mobile applications that takes advantage of the popularity of JavaScript and the React framework. For a long time, JavaScript has been considered a language that is not suitable for AOT (ahead-of-time) compilation due to its dynamic nature, and most JavaScript applications, for example React Native applications, rely on just-in-time compilation to achieve high performance. In this paper, we present JWST, an ahead-of-time JavaScript compiler that compiles JavaScript to a number of desktop and mobile targets in the context of secure network communications, including x86, x86_64, ARM64, and WebAssembly, etc. The compiler is built on top of the existing JavaScript interpreter QuickJS. By compiling the scripts of React Native applications ahead of time, we are able to achieve significant performance improvements in startup time, which is important for user experience. Compared to using the stock JavaScriptCore runtime, we are able to cut the startup time of React Native applications by 29% on average, and up to 38% on an ARM64 device with a Kirin 990E CPU. This not only improves the user experience but also enhances the response speed and stability of applications in a secure network communication environment, providing new ideas for safe and efficient mobile application development.

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
CiteScore
8.90
自引率
13.90%
发文量
249
期刊介绍: ransactions on Emerging Telecommunications Technologies (ETT), formerly known as European Transactions on Telecommunications (ETT), has the following aims: - to attract cutting-edge publications from leading researchers and research groups around the world - to become a highly cited source of timely research findings in emerging fields of telecommunications - to limit revision and publication cycles to a few months and thus significantly increase attractiveness to publish - to become the leading journal for publishing the latest developments in telecommunications
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信