How do code refactorings affect energy usage?

C. Sahin, L. Pollock, J. Clause
{"title":"How do code refactorings affect energy usage?","authors":"C. Sahin, L. Pollock, J. Clause","doi":"10.1145/2652524.2652538","DOIUrl":null,"url":null,"abstract":"Context: Code refactoring's benefits to understandability, maintainability and extensibility are well known enough that automated support for refactoring is now common in IDEs. However, the decision to apply such transformations is currently performed without regard to the impacts of the refactorings on energy consumption. This is primarily due to a lack of information and tools to provide such relevant information to developers. Unfortunately, concerns about energy efficiency are rapidly becoming a high priority concern in many environments, including embedded systems, laptops, mobile devices, and data centers.\n Goal: We aim to address the lack of information about the energy efficiency impacts of code refactorings.\n Method: We conducted an empirical study to investigate the energy impacts of 197 applications of 6 commonly-used refactorings.\n Results: We found that refactorings can not only impact energy usage but can also increase and decrease the amount of energy used by an application. In addition, we also show that metrics commonly believed to correlate with energy usage are unlikely to be able to fully predict the impact of applying a refactoring.\n Conclusion: The results from this and similar studies could be used to augment IDEs to help software developers build more energy efficient software.","PeriodicalId":124452,"journal":{"name":"International Symposium on Empirical Software Engineering and Measurement","volume":"41 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2014-09-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"114","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Symposium on Empirical Software Engineering and Measurement","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2652524.2652538","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 114

Abstract

Context: Code refactoring's benefits to understandability, maintainability and extensibility are well known enough that automated support for refactoring is now common in IDEs. However, the decision to apply such transformations is currently performed without regard to the impacts of the refactorings on energy consumption. This is primarily due to a lack of information and tools to provide such relevant information to developers. Unfortunately, concerns about energy efficiency are rapidly becoming a high priority concern in many environments, including embedded systems, laptops, mobile devices, and data centers. Goal: We aim to address the lack of information about the energy efficiency impacts of code refactorings. Method: We conducted an empirical study to investigate the energy impacts of 197 applications of 6 commonly-used refactorings. Results: We found that refactorings can not only impact energy usage but can also increase and decrease the amount of energy used by an application. In addition, we also show that metrics commonly believed to correlate with energy usage are unlikely to be able to fully predict the impact of applying a refactoring. Conclusion: The results from this and similar studies could be used to augment IDEs to help software developers build more energy efficient software.
代码重构如何影响能源使用?
上下文:代码重构在可理解性、可维护性和可扩展性方面的好处是众所周知的,因此对重构的自动化支持现在在ide中很常见。然而,目前在执行应用此类转换的决策时,并不考虑重构对能源消耗的影响。这主要是由于缺乏向开发人员提供相关信息的信息和工具。不幸的是,在许多环境中,对能源效率的关注正迅速成为一个优先考虑的问题,包括嵌入式系统、笔记本电脑、移动设备和数据中心。目标:我们的目标是解决缺乏关于代码重构对能源效率影响的信息。方法:对6种常用重构方法197个应用的能耗影响进行实证研究。结果:我们发现重构不仅可以影响能源使用,还可以增加或减少应用程序使用的能源量。此外,我们还表明,通常认为与能源使用相关的指标不太可能完全预测应用重构的影响。结论:本研究和类似研究的结果可用于增强ide,以帮助软件开发人员构建更节能的软件。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信