arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.07809cs.SEcs.CLcs.PF
收藏

分析移动设备上Lambda函数的资源利用率:Kotlin和Swift的案例研究

Analyzing the Resource Utilization of Lambda Functions on Mobile Devices: Case Studies on Kotlin and Swift

Chibundom U. Ejimuda, Gaston Longhitano, Reza Rawassizadeh

AI总结:

本研究针对智能手机耗电量问题,对比分析Kotlin和Swift中Lambda函数与等效非Lambda代码结构的资源消耗,发现Lambda函数虽提升代码可读性但未增加功能,却造成显著的电池、内存及执行时间开销。

摘要:

全球有数十亿部智能手机在使用,用户在这些设备上的日常使用时间对总耗电量贡献显著。鉴于此规模,即使智能手机耗电量的微小减少也能带来可观的节能效果。本研究探讨Lambda函数对移动编程中资源消耗的影响。尽管Lambda函数以提升代码可读性和简洁性著称,但其使用并未增加编程语言的功能。我们的研究对比了使用Lambda函数与不使用Lambda函数的等效代码结构,调查了前者在电池利用率、内存使用和执行时间方面的影响。研究结果显示,Lambda函数在移动设备上造成了显著的资源开销,且未提供额外功能。

英文摘要:

With billions of smartphones in use globally, the daily time spent on these devices contributes significantly to overall electricity consumption. Given this scale, even minor reductions in smartphone power use could result in substantial energy savings. This study explores the impact of Lambda functions on resource consumption in mobile programming. While Lambda functions are known for enhancing code readability and conciseness, their use does not add to the functional capabilities of a programming language. Our research investigates the implications of using Lambda functions in terms of battery utilization, memory usage, and execution time compared to equivalent code structures without Lambda functions. Our findings reveal that Lambda functions impose a considerable resource overhead on mobile devices without offering additional functionalities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑