Concurrent Java']JavaScript Parsing for Faster Loading of Web Apps

被引:6
|
作者
Park, Hyukwoo [1 ]
Cha, Myungsu [1 ]
Moon, Soo-Mook [1 ]
机构
[1] Seoul Natl Univ, Dept Elect & Comp Engn, Seoul 08826, South Korea
关键词
!text type='Java']Java[!/text]Script; web app; parser; concurrent parsing; web browser; !text type='java']java[!/text]script engine;
D O I
10.1145/3004281
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
JavaScript is a dynamic language mainly used as a client-side web script. Nowadays, web is evolving into an application platform with its web apps, and JavaScript increasingly undertakes complex computations and interactive user interfaces, requiring a high-performance JavaScript engine. There have been many optimizations for efficient JavaScript engines, but one component that has not been optimized much is JavaScript parsing. A JavaScript function needs to be parsed before being executed, and the parsing overhead takes a substantial portion of JavaScript execution time for web apps, especially during app loading. This article proposes concurrent parsing of JavaScript, which performs the parsing of JavaScript functions in advance on different threads, while the main thread is executing the parsed JavaScript functions. This can hide the parsing overhead from the main execution thread, reducing the JavaScript execution time, thus reducing the overall app loading time. More specifically, we separated JavaScript parsing and made it run on different threads without violating the execution semantics of JavaScript. We also designed an efficient multi-threaded parsing architecture, which reduces the synchronization overhead and schedules the parsing requests appropriately. Finally, we explored two methods of choosing the target functions for concurrent parsing: one based on profiled information and the other based on speculative heuristics. We performed experiments on theWebKit browser with the JSC engine for real web apps. The result shows that the proposed concurrent parsing can improve the JavaScript performance during app loading by as much as 64% and by 39.7% on average. This improves the whole app loading performance tangibly, by as much as 32.7% and by 18.2%, on average.
引用
收藏
页数:24
相关论文
共 50 条
  • [1] Live Migration of Java']JavaScript Web Apps
    Lo, James
    Wohlstadter, Eric
    Mesbah, Ali
    PROCEEDINGS OF THE 22ND INTERNATIONAL CONFERENCE ON WORLD WIDE WEB (WWW'13 COMPANION), 2013, : 241 - 244
  • [2] Snapshot-based Loading Acceleration of Web Apps with Nondeterministic Java']JavaScript Execution
    Yeo, JiHwan
    Shin, ChangHyun
    Moon, Soo-Mook
    WEB CONFERENCE 2019: PROCEEDINGS OF THE WORLD WIDE WEB CONFERENCE (WWW 2019), 2019, : 2215 - 2224
  • [3] Web applets: Java']Java Java']JavaScript and ActiveX
    Stein, L
    TRENDS IN GENETICS, 1996, 12 (11) : 484 - 485
  • [4] Design and Construction of Distributed Java']JavaScript Parsing System
    Shen, Bo
    Huang, Wei
    Li, Xiaodi
    INTERNATIONAL JOURNAL OF INTERDISCIPLINARY TELECOMMUNICATIONS AND NETWORKING, 2014, 6 (04) : 1 - 14
  • [5] Scalable framework for parsing: from Fortress to Java']JavaScript
    Ryu, Sukyoung
    SOFTWARE-PRACTICE & EXPERIENCE, 2016, 46 (09): : 1219 - 1238
  • [6] Semantics and Analyses for Java']JavaScript and the Web
    Krishnamurthi, Shriram
    STATIC ANALYSIS, SAS 2012, 2012, 7460 : 4 - 4
  • [7] Essential Java']JavaScript for Web professionals
    Corder, MC
    TECHNICAL COMMUNICATION, 2004, 51 (03) : 429 - 430
  • [8] Spam and Java']JavaScript, future of the web
    Andrew, Alex M.
    KYBERNETES, 2008, 37 (9-10) : 1463 - 1465
  • [9] Java']JavaScript primer plus: Enhancing Web pages with Java']JavaScript programming language
    Kelly, AG
    INTERNATIONAL JOURNAL OF INFORMATION MANAGEMENT, 1998, 18 (02) : 162 - 162
  • [10] Risk Analysis of Exposed Methods to Java']JavaScript in Hybrid Apps
    Yang, Liu
    Cui, Xingmin
    Wang, Changyuan
    Guo, Shanqing
    Xu, Xinshun
    2016 IEEE TRUSTCOM/BIGDATASE/ISPA, 2016, : 458 - 464