undefined

Static Code Analysis for Reducing Energy Code Smells in Different Loop Types: A Case Study in Java

Julkaisuvuosi

2024

Tekijät

Gurung Ram Prasad; Porras Jari; Koistinaho Jarkko

Abstrakti:

An increase in ICT devices and services has led to a rise in carbon emissions. As a result, there is a growing demand for energy-efficient software; however, this demand remains unmet due to the lack of knowledge regarding the best practices for reducing energy consumption in software. Unnecessary iterations and faulty looping conditions in different loops can consume high energy, and loops are considered as one of the most energy consuming entities. The purpose of this study is to detect and rectify energy code smells in different Java loop types by implementing static code analysis. Using the DSR approach, a Java Maven custom SonarQube plugin, GreenForLoops, was developed. The plugin underwent in-house testing as well as evaluation by professionals from industry. The professionals had provided feedback, which were later analyzed by using a qualitative method. For internal testing, 16 different open-source Java projects were selected. The results demonstrated considerable variations in the prevalence of energy code smells across the projects. Additionally, the plugin provided sample code suggestions to address each identified energy code smell. Finally, based on professional reviews, the plugin received an overall rating of Very Good. In conclusion, the plugin had successfully detected code smells and suggested code samples to rectify the detected code smells. However, it cannot be overlooked that the plugin may also generate false positives.
Näytä enemmän

Organisaatiot ja tekijät

Julkaisutyyppi

Julkaisumuoto

Artikkeli

Emojulkaisun tyyppi

Konferenssi

Artikkelin tyyppi

Muu artikkeli:

Yleisö

Tieteellinen

Vertaisarvioitu

Vertaisarvioitu

OKM:n julkaisutyyppiluokitus

A4 Artikkeli konferenssijulkaisussa

Avoin saatavuus

Avoin saatavuus kustantajan palvelussa

Ei

Rinnakkaistallennettu

Ei

Muut tiedot

Tieteenalat

Tietojenkäsittely ja informaatiotieteet

Avainsanat

[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Kustantajan kansainvälisyys

Kansainvälinen

Kansainvälinen yhteisjulkaisu

Ei

Yhteisjulkaisu yrityksen kanssa

Kyllä

DOI

10.1109/ICT4S64576.2024.00037

Julkaisu kuuluu opetus- ja kulttuuriministeriön tiedonkeruuseen

Kyllä