arrow
Return

Evolving JavaScript Code to Reduce Load Time

delete2021-08-01
delete2
PRE
AI
F
Fábio de Almeida Farzat *
M
Márcio de Oliveira Barros
G
Guilherme Horta Travassos
DOI:10.1109/TSE.2019.2928293delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
JavaScript is one of the most used programming languages for front-end development of Web applications. The increase in complexity of front-end features brings concerns about performance, especially the load and execution time of JavaScript code. In this paper, we propose an evolutionary program improvement technique to reduce the size of JavaScript programs and, therefore, the time required to load and execute them in Web applications. To guide the development of this technique, we performed an experimental study to characterize the patches applied to JavaScript programs to reduce their size while keeping the functionality required to pass all test cases in their test suites. We applied this technique to 19 JavaScript programs varying from 92 to 15,602 LOC and observed reductions from 0.2 to 73.8 percent of the original code, as well as a relationship between the quality of a program's test suite and the ability to reduce the size of its source code.
Keywords:
Software
Syntactics
Genetic programming
Software algorithms
Heuristic algorithms
Libraries
Runtime
JavaScript
source code improvement
genetic programming
local search
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.8K
Citations:
1.1W

Organization

Universidade Federal do Estado do Rio de Janeiro cover
Universidade Federal do Estado do Rio de Janeiro
Scholars:
1.3K
Papers: 734
Citations: 812
U
Universidade Federal do Rio de Janeiro
Scholars:
2.9W
Papers: 1.8W
Citations: 1.6W