arrow
返回

Tail Call Optimization Tailored for Native Stack Utilization in JavaScript Runtimes

delete2024-01-01
delete0
delete
OA
AI
H
Hyukwoo Park *
S
Seonghyun Kim
DOI:10.1109/ACCESS.2024.3441750delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
JavaScript has significantly evolved, broadening its capabilities. However, the uptake of tail call optimization (TCO) remains limited, largely due to concerns about debugging difficulties and the potential increase in overall complexity. This paper highlights the compelling importance of tail calls within web applications, advocating for TCO as a means to boost performance and enhance memory efficiency. We present an innovative TCO technique that leverages the native stack within JavaScript engines, capitalizing on the native stack's inherent benefits over heap memory. This technique is carefully crafted to comply with diverse TCO standards, prioritizing simplicity and providing debugging features. We tackle the inherent challenges of TCO and successfully deploy our method in a lightweight JavaScript engine. Our approach is rigorously evaluated, proving its effectiveness and practicality. Notably, our implementation facilitates considerable memory savings for web applications, comparable to the maximum Resident Set Size (RSS), and achieves an average performance improvement of approximately 19.8% for algorithms that are heavily recursive. This research not only demonstrates the versatility and efficiency of our TCO strategy but also makes a significant contribution to the wider adoption and comprehension of TCO, thereby improving JavaScript engines' performance and memory management efficiency.
Keyword:
Tail
Engines
Runtime
Optimization
Standards
Codes
Memory management
Code optimization
compiler
interpreter
JavaScript
JavaScript engine
tail call optimization

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
9.8W
被引数:
29.4W

机构

S
samsung
学者数:
8.6K
论文数: 6.4K
被引数: 8
引用论文

引用论文

err分享
err收藏
Aryldiazenido Complexes: Syntheses of Iridium Complexes with Doubly-Bent Aryldiazenido Ligands and x-ray Structure of [Cp*Ir(PMe3)2(p-N2C6H4OMe)][BF4]
err2002-05-01
err0
PREAI
errGrace Chi-Young Kim; Raymond J. Batchelor; Xiaoqian Yan; Frederick W. B. Einstein; Derek Sutton
err分享
err收藏
Involvement of brain cytokines in the neurobehavioral disturbances induced by HIV-1 glycoprotein120
err2002-04-01
err0
PREAI
errOhr Barak; Inbal Goshen; Tamir Ben-Hur; Joseph Weidenfeld; Anna N Taylor; Raz Yirmiya
err分享
err收藏
Selenium content of convenience and fast foods in Ayrshire, Scotland
err2009-07-06
err0
PREAI
errJeannette Molnár; Allan Macpherson; Ivy Barclay; Pál Molnár
err分享
err收藏
Physical interpretation of the partition function for colloidal clusters
err2018-09-24
err0
errOAAI
errEllen D. Klein; Rebecca W. Perry; Vinothan N. Manoharan
err分享
err收藏
没有更多内容