arrow
返回

Getting the most from map data structures in Android

delete2018-03-02
delete10
PRE
AI
R
Rubén Saborido *
R
Rodrigo Morales
F
Foutse Khomh
Y
Yann‐Gaël Guéhéneuc
G
Giuliano Antoniol
DOI:10.1007/s10664-018-9607-8delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
A map is a data structure that is commonly used to store data as key-value pairs and retrieve data as keys, values, or key-value pairs. Although Java offers different map implementation classes, Android SDK offers other implementations supposed to be more efficient than HashMap: ArrayMap and SparseArray variants (SparseArray, LongSparseArray, SparseIntArray, SparseLongArray, and SparseBooleanArray). Yet, the performance of these implementations in terms of CPU time, memory usage, and energy consumption is lacking in the official Android documentation; although saving CPU, memory, and energy is a major concern of users wanting to increase battery life. Consequently, we study the use of map implementations by Android developers in two ways. First, we perform an observational study of 5713 Android apps in GitHub. Second, we conduct a survey to assess developers' perspective on Java and Android map implementations. Then, we perform an experimental study comparing HashMap, ArrayMap, and SparseArray variants map implementations in terms of CPU time, memory usage, and energy consumption. We conclude with guidelines for choosing among the map implementations: HashMap is preferable over ArrayMap to improve energy efficiency of apps, and SparseArray variants should be used instead of HashMap and ArrayMap when keys are primitive types.
Keyword:
Android
Map data structure
Map implementations
CPU usage
Memory usage
Energy consumption
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

Research on Big Data - A systematic mapping study
err2017-11-01
err89
PREAI
errAkoka, Jacky; Comyn-Wattiau, Isabelle; Laoufi, Nabil
err分享
err收藏
DRIFTNET-EnVACK: Adaptive Drift Detection in Cloud Data Streams With Ensemble Variational Auto-Encoder Featuring Contextual Network
err2024-01-01
err0
errOAAI
errMehmood, Tajwar; Latif, Seemab; Latif, Rabia; Majeed, Hammad; Waqar Malik, Asad
err分享
err收藏
Affinity-Based Thread and Data Mapping in Shared Memory Systems
err2016-12-05
err21
PREAI
errDiener, Matthias; Cruz, Eduardo H. M.; Alves, Marco A. Z.; Navaux, Philippe O. A.; Koren, Israel
err分享
err收藏

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
6.4K

机构

U
université de montréal
学者数:
1.0K
论文数: 435
被引数: 2.3W
引用论文

引用论文

Muscular Fitness in Relation to Physical Activity and Television Viewing among Young Adults
err2009-11-01
err0
errOAAI
errNIKO P. PAALANNE; RAIJA I. KORPELAINEN; SIMO P. TAIMELA; JUHA P. AUVINEN; TUIJA H. TAMMELIN; TEIJU M. HIETIKKO; HANNU S. KAIKKONEN; KAISU m. KAIKKONEN; JARO I. KARPPINEN
err分享
err收藏
err分享
err收藏
How Does Code Obfuscation Impact Energy Usage?
err2014-09-01
err29
PREAI
errSahin, Cagri; Tornquist, Philip; McKenna, Ryan; Pearson, Zachary; Clause, James
err分享
err收藏
Demographic and aggressive characteristics of dogs in a general veterinary caseload
err2001-09-01
err0
PREAI
errN.C. Guy; U.A. Luescher; S.E. Dohoo; E. Spangler; J.B. Miller; I.R. Dohoo; L.A. Bate
err分享
err收藏
EARMO: An Energy-Aware Refactoring Approach for Mobile Apps
err2018-12-01
err63
PREAI
errMorales, Rodrigo; Saborido, Ruben; Khomh, Foutse; Chicano, Francisco; Antoniol, Giuliano
err分享
err收藏
err分享
err收藏
The Impact of User Choice on Energy Consumption
err2014-05-01
err34
PREAI
errZhang, Chenlei; Hindle, Abram; German, Daniel M.
err分享
err收藏
学者 查看更多内容