Energy Efficiency Analysis of Code Refactoring Techniques for Green and Sustainable Software in Portable Devices
Code refactoring is a time-consuming and effort-intensive process that is applied for making improvements to source codes. There exist several refactoring techniques to improve software quality. Some of them aim to reduce the energy consumption of the software. However, the combination of applied re...
Main Authors: | , , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2022-02-01
|
Series: | Electronics |
Subjects: | |
Online Access: | https://www.mdpi.com/2079-9292/11/3/442 |
_version_ | 1797488324819025920 |
---|---|
author | İbrahim Şanlıalp Muhammed Maruf Öztürk Tuncay Yiğit |
author_facet | İbrahim Şanlıalp Muhammed Maruf Öztürk Tuncay Yiğit |
author_sort | İbrahim Şanlıalp |
collection | DOAJ |
description | Code refactoring is a time-consuming and effort-intensive process that is applied for making improvements to source codes. There exist several refactoring techniques to improve software quality. Some of them aim to reduce the energy consumption of the software. However, the combination of applied refactoring techniques is crucial to the success rate. In addition, to provide sustainable services on portable devices such as mobile phones and laptops, which rely on batteries, improving and optimizing the energy efficiency is important. This study focuses on examining the effect of code refactoring techniques on energy consumption. A total of 25 different source codes of applications programmed in the C# and Java languages are selected for the study, and combinations obtained from refactoring techniques are applied to these source codes. The combinations applied are analyzed using the maintainability index. Power consumption estimation tools are used to measure the energy consumption of the original and refactored codes. The results show that the combinations significantly improve the software’s energy efficiency. The results will provide a better understanding of the relationship between the energy efficiency of software and refactoring techniques. Moreover, they will help developers to improve their object-oriented code in terms of both energy efficiency and sustainability. |
first_indexed | 2024-03-10T00:00:31Z |
format | Article |
id | doaj.art-8c17604ecb2442d386ed94d47670134d |
institution | Directory Open Access Journal |
issn | 2079-9292 |
language | English |
last_indexed | 2024-03-10T00:00:31Z |
publishDate | 2022-02-01 |
publisher | MDPI AG |
record_format | Article |
series | Electronics |
spelling | doaj.art-8c17604ecb2442d386ed94d47670134d2023-11-23T16:17:00ZengMDPI AGElectronics2079-92922022-02-0111344210.3390/electronics11030442Energy Efficiency Analysis of Code Refactoring Techniques for Green and Sustainable Software in Portable Devicesİbrahim Şanlıalp0Muhammed Maruf Öztürk1Tuncay Yiğit2Graduate School of Natural and Applied Sciences, Suleyman Demirel University, Isparta 32260, TurkeyDepartment of Computer Engineering, Faculty of Engineering, Suleyman Demirel University, Isparta 32260, TurkeyDepartment of Computer Engineering, Faculty of Engineering, Suleyman Demirel University, Isparta 32260, TurkeyCode refactoring is a time-consuming and effort-intensive process that is applied for making improvements to source codes. There exist several refactoring techniques to improve software quality. Some of them aim to reduce the energy consumption of the software. However, the combination of applied refactoring techniques is crucial to the success rate. In addition, to provide sustainable services on portable devices such as mobile phones and laptops, which rely on batteries, improving and optimizing the energy efficiency is important. This study focuses on examining the effect of code refactoring techniques on energy consumption. A total of 25 different source codes of applications programmed in the C# and Java languages are selected for the study, and combinations obtained from refactoring techniques are applied to these source codes. The combinations applied are analyzed using the maintainability index. Power consumption estimation tools are used to measure the energy consumption of the original and refactored codes. The results show that the combinations significantly improve the software’s energy efficiency. The results will provide a better understanding of the relationship between the energy efficiency of software and refactoring techniques. Moreover, they will help developers to improve their object-oriented code in terms of both energy efficiency and sustainability.https://www.mdpi.com/2079-9292/11/3/442code refactoringenergy consumptiongreen and sustainable softwareenergy efficiencyobject-oriented codemaintainability index |
spellingShingle | İbrahim Şanlıalp Muhammed Maruf Öztürk Tuncay Yiğit Energy Efficiency Analysis of Code Refactoring Techniques for Green and Sustainable Software in Portable Devices Electronics code refactoring energy consumption green and sustainable software energy efficiency object-oriented code maintainability index |
title | Energy Efficiency Analysis of Code Refactoring Techniques for Green and Sustainable Software in Portable Devices |
title_full | Energy Efficiency Analysis of Code Refactoring Techniques for Green and Sustainable Software in Portable Devices |
title_fullStr | Energy Efficiency Analysis of Code Refactoring Techniques for Green and Sustainable Software in Portable Devices |
title_full_unstemmed | Energy Efficiency Analysis of Code Refactoring Techniques for Green and Sustainable Software in Portable Devices |
title_short | Energy Efficiency Analysis of Code Refactoring Techniques for Green and Sustainable Software in Portable Devices |
title_sort | energy efficiency analysis of code refactoring techniques for green and sustainable software in portable devices |
topic | code refactoring energy consumption green and sustainable software energy efficiency object-oriented code maintainability index |
url | https://www.mdpi.com/2079-9292/11/3/442 |
work_keys_str_mv | AT ibrahimsanlıalp energyefficiencyanalysisofcoderefactoringtechniquesforgreenandsustainablesoftwareinportabledevices AT muhammedmarufozturk energyefficiencyanalysisofcoderefactoringtechniquesforgreenandsustainablesoftwareinportabledevices AT tuncayyigit energyefficiencyanalysisofcoderefactoringtechniquesforgreenandsustainablesoftwareinportabledevices |