Repositorio Institucional
Repositorio Institucional
CONICET Digital
  • Inicio
  • EXPLORAR
    • AUTORES
    • DISCIPLINAS
    • COMUNIDADES
  • Estadísticas
  • Novedades
    • Noticias
    • Boletines
  • Ayuda
    • General
    • Datos de investigación
  • Acerca de
    • CONICET Digital
    • Equipo
    • Red Federal
  • Contacto
JavaScript is disabled for your browser. Some features of this site may not work without it.
  • INFORMACIÓN GENERAL
  • RESUMEN
  • ESTADISTICAS
 
Artículo

Slimming javascript applications: An approach for removing unused functions from javascript libraries

Vázquez, Hernán CeferinoIcon ; Bergel, Alexandre; Vidal, Santiago AgustínIcon ; Diaz Pace, Jorge AndresIcon ; Marcos, Claudia Andrea
Fecha de publicación: 03/2019
Editorial: Elsevier Science
Revista: Information And Software Technology
ISSN: 0950-5849
Idioma: Inglés
Tipo de recurso: Artículo publicado
Clasificación temática:
Ciencias de la Computación

Resumen

Context: 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.
Palabras clave: JAVASCRIPT , LIBRARY DEPENDENCIES , PERFORMANCE OVERHEAD , SOFTWARE MAINTENANCE , UNUSED FUNCTIONS
Ver el registro completo
 
Archivos asociados
Tamaño: 764.0Kb
Formato: PDF
.
Solicitar
Licencia
info:eu-repo/semantics/restrictedAccess Excepto donde se diga explícitamente, este item se publica bajo la siguiente descripción: Atribución-NoComercial-SinDerivadas 2.5 Argentina (CC BY-NC-ND 2.5 AR)
Identificadores
URI: http://hdl.handle.net/11336/90991
URL: https://www.sciencedirect.com/science/article/abs/pii/S0950584918302210
DOI: http://dx.doi.org/10.1016/j.infsof.2018.10.009
Colecciones
Articulos(ISISTAN)
Articulos de INSTITUTO SUPERIOR DE INGENIERIA DEL SOFTWARE
Citación
Vázquez, Hernán Ceferino; Bergel, Alexandre; Vidal, Santiago Agustín; Diaz Pace, Jorge Andres; Marcos, Claudia Andrea; Slimming javascript applications: An approach for removing unused functions from javascript libraries; Elsevier Science; Information And Software Technology; 107; 3-2019; 18-29
Compartir
Altmétricas
 

Enviar por e-mail
Separar cada destinatario (hasta 5) con punto y coma.
  • Facebook
  • X Conicet Digital
  • Instagram
  • YouTube
  • Sound Cloud
  • LinkedIn

Los contenidos del CONICET están licenciados bajo Creative Commons Reconocimiento 2.5 Argentina License

https://www.conicet.gov.ar/ - CONICET

Inicio

Explorar

  • Autores
  • Disciplinas
  • Comunidades

Estadísticas

Novedades

  • Noticias
  • Boletines

Ayuda

Acerca de

  • CONICET Digital
  • Equipo
  • Red Federal

Contacto

Godoy Cruz 2290 (C1425FQB) CABA – República Argentina – Tel: +5411 4899-5400 repositorio@conicet.gov.ar
TÉRMINOS Y CONDICIONES