JavaScript Dead Code Identification, Elimination, and Empirical Assessment

نویسندگان

چکیده

Web apps are built by using a combination of HTML, CSS, and JavaScript. While building modern web apps, it is common practice to make use third-party libraries frameworks, as improve developers’ productivity code quality. Alongside these benefits, the adoption such results in introduction JavaScript dead code , i.e., implementing unused functionalities. The costs for downloading parsing can negatively contribute loading time resource usage apps. goal our study two-fold. First, we present xmlns:xlink="http://www.w3.org/1999/xlink">Lacuna an approach automatically detecting eliminating JavaScript from proposed supports both static dynamic analyses, extensible be applied any base, without imposing constraints on coding style or specific constructs. Second, leveraging Lacuna conduct experiment empirically evaluate run-time overhead terms energy consumption, performance, network usage, context mobile We four times 30 independently developed developers, each according different optimization level provided Lacuna. Afterward, version app executed Android device, while collecting measures assess potential caused code. Experimental results, among others, highlight that removal has positive impact significantly reducing number bytes transferred over network.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Analysis and Identification of Malicious JavaScript Code

Analysis and Identification of Malicious JavaScript Code Mohammad Fraiwan a , Rami Al-Salman a , Natheer Khasawneh b & Stefan Conrad c a Department of Computer Engineering, Jordan University of Science and Technology, Irbid, Jordan b Department of Software Engineering, Jordan University of Science and Technology, Irbid, Jordan c Institute of Computer Science, Heinrich-Heine University, Düesseld...

متن کامل

Dead Code Elimination through Dependent Types

Pattern matching is an important feature in various functional programming languages such as SML, Caml, Haskell, etc. In these languages, unreachable or redundant matching clauses, which can be regarded as a special form of dead code, are a rich source for program errors. Therefore, eliminating unreachable matching clauses at compile-time can signiicantly enhance program error detection. Furthe...

متن کامل

Region-Based Partial Dead Code Elimination on Predicated Code

This paper presents the design, implementation and experimental evaluation of a practical region-based partial dead code elimination (PDE) algorithm on predicated code in an existing compiler framework. Our algorithm processes PDE candidates using a worklist and reasons about their partial deadness using predicate partition graphs. It operates uniformly on hyperblocks and regions comprising bas...

متن کامل

Partial dead code elimination on predicated code regions

This paper presents the design, implementation and experimental evaluation of a practical region-based partial dead code elimination (PDE) algorithm on predicated code in the ORC compiler framework. Existing PDE algorithms are not applicable on predicated code due to the existence of if-converted branches in the program. The proposed algorithm processes all PDE candidates in a worklist and reas...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: IEEE Transactions on Software Engineering

سال: 2023

ISSN: ['0098-5589', '1939-3520', '2326-3881']

DOI: https://doi.org/10.1109/tse.2023.3267848