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

📅 2025-02-07
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Lambda expressions are widely adopted in mobile development (Android/Kotlin and iOS/Swift), yet their resource implications in resource-constrained environments remain poorly quantified. Method: We conduct a systematic, cross-platform empirical study using real-device measurements—including fine-grained power profiling, memory heap analysis, and micro-benchmarks—to compare lambdas against equivalent traditional control structures (e.g., anonymous inner classes, closures with explicit capture). Contribution/Results: Our analysis reveals that lambdas incur non-negligible overheads without functional benefit: +12–23% CPU execution time, +18–31% peak memory footprint, and +9–15% battery energy consumption—scaling linearly with nesting depth. These findings challenge the default adoption of lambdas in mobile contexts and provide the first empirical evidence-based guidance for optimizing functional programming practices on Android and iOS platforms.

Technology Category

Application Category

📝 Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

Analyzing Lambda functions' resource impact
Comparing battery, memory, execution usage
Assessing overhead without added functionality
Innovation

Methods, ideas, or system contributions that make the work stand out.

Assesses Lambda functions' resource impact
Compares battery, memory, execution metrics
Identifies significant resource overhead
🔎 Similar Papers
No similar papers found.
C
Chibundom Ejimuda
Department of Computer Science, Metropolitan College, Boston University
G
Gaston Longhitano
Department of Computer Science, Metropolitan College, Boston University
Reza Rawassizadeh
Reza Rawassizadeh
Associate Professor, Boston University
Digital HealthOn-device AIAI DemocratizationUbiquitous Computing