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
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
An Investigation of confusing code patterns in JavaScript
err2023-09-01
err2
errOAAI
errTorres, Adriano; Oliveira, Caio; Okimoto, Marcio; Marcilio, Diego; Queiroga, Pedro; Castor, Fernando; Bonifacio, Rodrigo; Canedo, Edna Dias; Ribeiro, Marcio; Monteiro, Eduardo
errShare
errSave
errShare
errSave
errShare
errSave
Abstract Syntax Tree Based Source Code Antiplagiarism System for Large Projects Set
err2020-01-01
err6
errOAAI
errDuracik, Michal; Hrkut, Patrik; Krsak, Emil; Toth, Stefan
errShare
errSave
errShare
errSave
errShare
errSave
On the Usage of New JavaScript Features Through Transpilers: The Babel Case
err2024-01-01
err1
PREAI
errNicolini, Thiago; Hora, Andre; Figueiredo, Eduardo
errShare
errSave

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
3.0K
Citations:
1.3W

Organization

U
Universidade Federal do Rio de Janeiro
Scholars:
1.3K
Papers: 372
Citations: 7.3K
U
universidade federal do estado do rio de janeiro
Scholars:
19
Papers: 11
Citations: 199
Cited Papers

Cited Papers

Protoplast Transformation as a Plant-Transferable Transient Expression System
err2016-02-04
err0
PREAI
errPatrícia Duarte; Diana Ribeiro; Inês Carqueijeiro; Sara Bettencourt; Mariana Sottomayor
errShare
errSave
GenProg: A Generic Method for Automatic Software Repair
err2012-01-01
err594
PREAI
errLe Goues, Claire; ThanhVu Nguyen; Forrest, Stephanie; Weimer, Westley
errShare
errSave
Comparison of Packing Modes of Poly(thiophene)s and Poly(thiazole)s
err1998-10-01
err0
errOAAI
errTakakazu Yamamoto; Bang-Lin Lee; Hajime Suganuma; Shintaro Sasaki
errShare
errSave
researcher View more