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 条
  • [31] Performance Scalability Analysis of Java']JavaScript Applications with Web Workers
    Verdu, Javier
    Pajuelo, Alex
    IEEE COMPUTER ARCHITECTURE LETTERS, 2016, 15 (02) : 105 - 108
  • [32] Practical AJAX Race Detection for Java']JavaScript Web Applications
    Adamsen, Christoffer Quist
    Moller, Anders
    Alimadadi, Saba
    Tip, Frank
    ESEC/FSE'18: PROCEEDINGS OF THE 2018 26TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, 2018, : 38 - 48
  • [33] JS']JSOPT: A Framework for Optimization of Java']JavaScript on Web Browsers
    Waqas, Muhammad
    Khan, Minhaj Ahmad
    MEHRAN UNIVERSITY RESEARCH JOURNAL OF ENGINEERING AND TECHNOLOGY, 2018, 37 (01) : 95 - 104
  • [34] Dynamic Property Caches A Step towards Faster Java']JavaScript Proxy Objects
    Serrano, Manuel
    Findler, Robert Bruce
    PROCEEDINGS OF THE 29TH INTERNATIONAL CONFERENCE ON COMPILER CONSTRUCTION (CC '20), 2020, : 108 - 118
  • [35] A java']javaScript-based scientific Web-calculator
    Boix, O
    Garcia-Fernandez, J
    Mujal, RM
    COMPUTER APPLICATIONS IN ENGINEERING EDUCATION, 2005, 13 (02) : 153 - 157
  • [36] Model-Based Development of Java']JavaScript Web Applications
    Wagner, Gerd
    CURRENT TRENDS IN WEB ENGINEERING, ICWE 2017, 2018, 10544 : 267 - 268
  • [37] Java']JavaScript for the World Wide Web: Visual QuickStart guide
    Hawley, T
    TECHNICAL COMMUNICATION, 2004, 51 (02) : 314 - 315
  • [38] On Estimating Platforms of Web User with Java']JavaScript Math Object
    Saito, Takamichi
    Noda, Takafumi
    Hosoya, Ryohei
    Tanabe, Kazuhisa
    Saito, Yuta
    ADVANCES IN NETWORK-BASED INFORMATION SYSTEMS, NBIS-2018, 2019, 22 : 407 - 418
  • [39] WEB BASED DYNAMIC MODELING BY MEANS OF PHP AND JAVA']JAVASCRIPT
    Valek, Jan
    Sladek, Petr
    INFORMATION AND COMMUNICATION TECHNOLOGY IN EDUCATION, 2012, : 291 - 301
  • [40] Java']JavaScript Access to DICOM Network and Objects in Web Browser
    Drnasin, Ivan
    Grgic, Mislav
    Gogic, Goran
    JOURNAL OF DIGITAL IMAGING, 2017, 30 (05) : 537 - 546