Show simple item record

Authordc.contributor.authorVázquez, Hernán 
Authordc.contributor.authorBergel, Alexandre 
Authordc.contributor.authorVidal, Santiago 
Authordc.contributor.authorDíaz Pace, Jorge 
Authordc.contributor.authorMarcos, Claudia 
Admission datedc.date.accessioned2019-05-31T15:33:50Z
Available datedc.date.available2019-05-31T15:33:50Z
Publication datedc.date.issued2019
Cita de ítemdc.identifier.citationInformation and Software Technology, Volumen 107, 2019, Pages 18-29.
Identifierdc.identifier.issn09505849
Identifierdc.identifier.other10.1016/j.infsof.2018.10.009
Identifierdc.identifier.urihttps://repositorio.uchile.cl/handle/2250/169646
Abstractdc.description.abstractContext A common practice in JavaScript development is to ship and deploy an application as a large file, called bundle , which is the result of combining the application code along with the code of all the libraries the application depends on. Despite the benefits of having a single bundle per application, this approach leads to applications being shipped with significant portions of code that are actually not used, which unnecessarily inflates the JavaScript bundles and could slow down website loading because of the extra unused code. Although some static analysis techniques exist for removing unused code, our investigations suggest that there is still room for improvements. Objective The goal of this paper is to address the problem of reducing the size of bundle files in JavaScript applications. Method In this context, we define the notion of Unused Foreign Function (UFF) to denote a JavaScript function contained in dependent libraries that is not needed at runtime. Furthermore, we propose an approach based on dynamic analysis that assists developers to identify and remove UFFs from JavaScript bundles. Results We report on a case-study performed over 22 JavaScript applications, showing evidence that our approach can produce size reductions of 26% on average (with reductions going up to 66% in some applications). Conclusion It is concluded that removing unused foreign functions from JavaScript bundles helps reduce their size, and thus, it can boost the results of existing static analysis techniques.
Lenguagedc.language.isoen
Publisherdc.publisherElsevier B.V.
Sourcedc.sourceInformation and Software Technology
Keywordsdc.subjectJavascript
Keywordsdc.subjectLibrary dependencies
Keywordsdc.subjectPerformance overhead
Keywordsdc.subjectSoftware maintenance
Keywordsdc.subjectUnused functions
Títulodc.titleSlimming javascript applications: An approach for removing unused functions from javascript libraries
Document typedc.typeArtículo de revista
dcterms.accessRightsdcterms.accessRightsAcceso a solo metadatos
Catalogueruchile.catalogadorjmm
Indexationuchile.indexArtículo de publicación SCOPUS
uchile.cosechauchile.cosechaSI


Files in this item

Icon

This item appears in the following Collection(s)

Show simple item record