Green software: Refactoring approach
An energy efficient information and communication system is a need of the day. Information technology related industries are making efforts to reduce power consumption by improvising both the hardware infrastructure and software systems. The hardware is driven by software; hence, design and developm...
Main Authors: | , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
Elsevier
2022-07-01
|
Series: | Journal of King Saud University: Computer and Information Sciences |
Subjects: | |
Online Access: | http://www.sciencedirect.com/science/article/pii/S1319157820305164 |
_version_ | 1811237764241293312 |
---|---|
author | Rajni Sehgal Deepti Mehrotra Renuka Nagpal Ramanuj Sharma |
author_facet | Rajni Sehgal Deepti Mehrotra Renuka Nagpal Ramanuj Sharma |
author_sort | Rajni Sehgal |
collection | DOAJ |
description | An energy efficient information and communication system is a need of the day. Information technology related industries are making efforts to reduce power consumption by improvising both the hardware infrastructure and software systems. The hardware is driven by software; hence, design and development of software may have a significant impact energy need of the overall system. Many times it is observed that complex software performs useless tasks leading to power consumption, referred to as energy leak. The solution of energy leaks for mobile applications has attracted the interest of researchers, but still handling energy leaks issues for applications developed using Java-based technology need to be explored. While designing software during maintenance phase, code smells are introduced which not only reduce performance of the software also may lead to execution of useless code thus enhancing the energy leak. The common practice of the software industry to remove the code smells is use of refactoring strategy. The basic idea of this study is to understand the impact of refactoring on total energy consumption. To explore this hypothesis a set of Java based applications are selected, code smell present in these applications are discovered and a suitable refactoring strategy is applied to reduce the code smell. Power consumption is estimated using an open source tool Microsoft Joulemeter, it monitors energy usage by machine resources and estimates power consumption. The energy consumption before and after refactoring is recorded and statistical t-test is performed to validate the proposed concept. |
first_indexed | 2024-04-12T12:30:01Z |
format | Article |
id | doaj.art-a6a36baf8e944f5eaf51512ce6b064ff |
institution | Directory Open Access Journal |
issn | 1319-1578 |
language | English |
last_indexed | 2024-04-12T12:30:01Z |
publishDate | 2022-07-01 |
publisher | Elsevier |
record_format | Article |
series | Journal of King Saud University: Computer and Information Sciences |
spelling | doaj.art-a6a36baf8e944f5eaf51512ce6b064ff2022-12-22T03:33:04ZengElsevierJournal of King Saud University: Computer and Information Sciences1319-15782022-07-0134746354643Green software: Refactoring approachRajni Sehgal0Deepti Mehrotra1Renuka Nagpal2Ramanuj Sharma3Corresponding author.; Amity University Uttar Pradesh, IndiaAmity University Uttar Pradesh, IndiaAmity University Uttar Pradesh, IndiaAmity University Uttar Pradesh, IndiaAn energy efficient information and communication system is a need of the day. Information technology related industries are making efforts to reduce power consumption by improvising both the hardware infrastructure and software systems. The hardware is driven by software; hence, design and development of software may have a significant impact energy need of the overall system. Many times it is observed that complex software performs useless tasks leading to power consumption, referred to as energy leak. The solution of energy leaks for mobile applications has attracted the interest of researchers, but still handling energy leaks issues for applications developed using Java-based technology need to be explored. While designing software during maintenance phase, code smells are introduced which not only reduce performance of the software also may lead to execution of useless code thus enhancing the energy leak. The common practice of the software industry to remove the code smells is use of refactoring strategy. The basic idea of this study is to understand the impact of refactoring on total energy consumption. To explore this hypothesis a set of Java based applications are selected, code smell present in these applications are discovered and a suitable refactoring strategy is applied to reduce the code smell. Power consumption is estimated using an open source tool Microsoft Joulemeter, it monitors energy usage by machine resources and estimates power consumption. The energy consumption before and after refactoring is recorded and statistical t-test is performed to validate the proposed concept.http://www.sciencedirect.com/science/article/pii/S1319157820305164Code smellsRefactoringPower consumptionJoulemeterJava applications |
spellingShingle | Rajni Sehgal Deepti Mehrotra Renuka Nagpal Ramanuj Sharma Green software: Refactoring approach Journal of King Saud University: Computer and Information Sciences Code smells Refactoring Power consumption Joulemeter Java applications |
title | Green software: Refactoring approach |
title_full | Green software: Refactoring approach |
title_fullStr | Green software: Refactoring approach |
title_full_unstemmed | Green software: Refactoring approach |
title_short | Green software: Refactoring approach |
title_sort | green software refactoring approach |
topic | Code smells Refactoring Power consumption Joulemeter Java applications |
url | http://www.sciencedirect.com/science/article/pii/S1319157820305164 |
work_keys_str_mv | AT rajnisehgal greensoftwarerefactoringapproach AT deeptimehrotra greensoftwarerefactoringapproach AT renukanagpal greensoftwarerefactoringapproach AT ramanujsharma greensoftwarerefactoringapproach |