一句话:通过分析 1193 个 Stack Overflow 能耗问题,揭示开发者对节能软件开发的多层级关注与实践挑战。
软件能耗已成为开发者日常开发中需要关注的关键问题,但已有研究多基于少量开发者的调查。本文构建并分析了一个精心整理的 Stack Overflow 能耗相关问题数据集,共包含 1193 个问题,以刻画真实开发场景中的能耗挑战。作者从问题意图、语义主题和相关技术(如编程语言)等维度开展实证分析。结果表明:最常见的能耗主题涉及平衡 Positioning 使用;高效处理数据尤其困难,相关问题响应时间最长;开发者提问主要是为了理解能耗相关的概念或 API;其关注点跨越硬件、操作系统和编程语言多个层次。该研究提升了人们对软件能耗影响的认知,并为不同层次的能耗优化(如优化 API 使用或硬件访问)提供了可操作的启示。
Energy consumption of software applications has emerged as a critical concern for developers to contemplate in their daily development processes. Previous studies have surveyed a limited number of developers to understand their viewpoints on energy consumption. We complement these studies by analyzing a meticulously curated dataset of 1,193 Stack Overflow (SO) questions concerning energy consumption. These questions capture real-world energy-related challenges in practice. To understand practitioners’ perceptions, we investigate the intentions behind these questions, semantic topics, and associated technologies (e.g., programming languages). Our results reveal that: (i) the most prevalent energy consumption topic is about balancing Positioning usage; (ii) efficiently handling data is particularly challenging, with these questions having the longest response times; (iii) practitioners primarily ask questions to understand a concept or API related to energy consumption; and (iv) practitioners are concerned about energy consumption across multiple levels—hardware, operating systems, and programming languages—during energy efficient software development. Our findings raise awareness about energy consumption’s impact on software development. We also derive actionable implications for energy optimization at different levels (e.g., optimizing API usage or hardware accesses) during energy-aware software development.