< Terug naar vorige pagina

Publicatie

On the Impact of Code Smells on the Energy Consumption of Mobile Applications

Tijdschriftbijdrage - Tijdschriftartikel

Context. The demand for green software design is steadily growing higher es- pecially in the context of mobile devices, where the computation is often limited by battery life. Previous studies found how wrong programming solutions have a strong impact on the energy consumption.
Objective. Despite the efforts spent so far, only a little knowledge on the in- fluence of code smells, i.e., symptoms of poor design or implementation choices, on the energy consumption of mobile applications is available.
Method. To provide a wider overview on the relationship between smells and energy efficiency, in this paper we conducted a large-scale empirical study on the influence of 9 Android-specific code smells on the energy consumption of 60 Android apps. In particular, we focus our attention on the design flaws that are theoretically supposed to be related to non-functional attributes of source code, such as performance and energy consumption.
Results. The results of the study highlight that methods affected by four code smell types, i.e., Internal Setter, Leaking Thread, Member Ignoring Method, and Slow Loop, consume up to 87 times more than methods affected by other code smells. Moreover, we found that refactoring these code smells reduces energy consumption in all of the situations.
Conclusions. Based on our findings, we argue that more research aimed at designing automatic refactoring approaches and tools for mobile apps is needed.
Tijdschrift: Information and Software Technology
ISSN: 0950-5849
Volume: 105
Pagina's: 43-55
Jaar van publicatie:2019
Trefwoorden:Code smells, Energy consumption, Mobile apps, Refactoring
BOF-keylabel:ja
CSS-citation score:2
Toegankelijkheid:Closed