Towards energy-aware coding practices for Android

Detalhes bibliográficos
Autor(a) principal: Saraiva, João
Data de Publicação: 2018
Outros Autores: Couto, Marco, Szabó, Csaba, Novák, Dávid
Tipo de documento: Artigo
Idioma: eng
Título da fonte: Repositório Científico de Acesso Aberto de Portugal (Repositórios Cientìficos)
Texto Completo: http://hdl.handle.net/1822/69086
Resumo: This paper studies how the use of different coding practices when developing Android applications influence energy consumption. We consider two common Java/Android programming practices, namely string operations and (non) cached image loading, and we show the energy profile of different coding practices for doing them. With string operations, we compare the performance of the usage of the standard String class to the usage of the StringBuilder class, while with our second practice we evaluate the benefits of image caching with asynchronous loading. We externally measure energy consumption of the example applications using the Trepn profiler application by Qualcomm. Our preliminary results show that selected coding practices do significantly affect energy consumption, in the particular cases of our practice selection, this difference varies between 20% and 50%.
id RCAP_0b1d964a25bdc578bfff146d024bebe7
oai_identifier_str oai:repositorium.sdum.uminho.pt:1822/69086
network_acronym_str RCAP
network_name_str Repositório Científico de Acesso Aberto de Portugal (Repositórios Cientìficos)
repository_id_str 7160
spelling Towards energy-aware coding practices for AndroidGreen computingAndroid software optimizationCode practicesEnergy consumption of softwareEngenharia e Tecnologia::Engenharia Eletrotécnica, Eletrónica e InformáticaThis paper studies how the use of different coding practices when developing Android applications influence energy consumption. We consider two common Java/Android programming practices, namely string operations and (non) cached image loading, and we show the energy profile of different coding practices for doing them. With string operations, we compare the performance of the usage of the standard String class to the usage of the StringBuilder class, while with our second practice we evaluate the benefits of image caching with asynchronous loading. We externally measure energy consumption of the example applications using the Trepn profiler application by Qualcomm. Our preliminary results show that selected coding practices do significantly affect energy consumption, in the particular cases of our practice selection, this difference varies between 20% and 50%.This work is funded by the Slovak Research and Development Agency under the contract No. SK-PT2015-0037 and by the Portugal-Slovakia Cooperation FCT Project (Ref. 441), and by the ERDF – European Regional Development Fund through the Operational Programme for Competitiveness and Internationalisation - COMPETE 2020 Programme and by National Funds through the Portuguese funding agency, FCT – Fundacão para a Ciência e a Tecnologia within project POCI-01-0145- FEDER-016718.Technical University in Kosice. Faculty of Electrical Engineering and InformaticsUniversidade do MinhoSaraiva, JoãoCouto, MarcoSzabó, CsabaNovák, Dávid20182018-01-01T00:00:00Zinfo:eu-repo/semantics/publishedVersioninfo:eu-repo/semantics/articleapplication/pdfhttp://hdl.handle.net/1822/69086eng1338-395710.15546/aeei-2018-0003info:eu-repo/semantics/openAccessreponame:Repositório Científico de Acesso Aberto de Portugal (Repositórios Cientìficos)instname:Agência para a Sociedade do Conhecimento (UMIC) - FCT - Sociedade da Informaçãoinstacron:RCAAP2023-07-21T12:03:49Zoai:repositorium.sdum.uminho.pt:1822/69086Portal AgregadorONGhttps://www.rcaap.pt/oai/openaireopendoar:71602024-03-19T18:54:00.277397Repositório Científico de Acesso Aberto de Portugal (Repositórios Cientìficos) - Agência para a Sociedade do Conhecimento (UMIC) - FCT - Sociedade da Informaçãofalse
dc.title.none.fl_str_mv Towards energy-aware coding practices for Android
title Towards energy-aware coding practices for Android
spellingShingle Towards energy-aware coding practices for Android
Saraiva, João
Green computing
Android software optimization
Code practices
Energy consumption of software
Engenharia e Tecnologia::Engenharia Eletrotécnica, Eletrónica e Informática
title_short Towards energy-aware coding practices for Android
title_full Towards energy-aware coding practices for Android
title_fullStr Towards energy-aware coding practices for Android
title_full_unstemmed Towards energy-aware coding practices for Android
title_sort Towards energy-aware coding practices for Android
author Saraiva, João
author_facet Saraiva, João
Couto, Marco
Szabó, Csaba
Novák, Dávid
author_role author
author2 Couto, Marco
Szabó, Csaba
Novák, Dávid
author2_role author
author
author
dc.contributor.none.fl_str_mv Universidade do Minho
dc.contributor.author.fl_str_mv Saraiva, João
Couto, Marco
Szabó, Csaba
Novák, Dávid
dc.subject.por.fl_str_mv Green computing
Android software optimization
Code practices
Energy consumption of software
Engenharia e Tecnologia::Engenharia Eletrotécnica, Eletrónica e Informática
topic Green computing
Android software optimization
Code practices
Energy consumption of software
Engenharia e Tecnologia::Engenharia Eletrotécnica, Eletrónica e Informática
description This paper studies how the use of different coding practices when developing Android applications influence energy consumption. We consider two common Java/Android programming practices, namely string operations and (non) cached image loading, and we show the energy profile of different coding practices for doing them. With string operations, we compare the performance of the usage of the standard String class to the usage of the StringBuilder class, while with our second practice we evaluate the benefits of image caching with asynchronous loading. We externally measure energy consumption of the example applications using the Trepn profiler application by Qualcomm. Our preliminary results show that selected coding practices do significantly affect energy consumption, in the particular cases of our practice selection, this difference varies between 20% and 50%.
publishDate 2018
dc.date.none.fl_str_mv 2018
2018-01-01T00:00:00Z
dc.type.status.fl_str_mv info:eu-repo/semantics/publishedVersion
dc.type.driver.fl_str_mv info:eu-repo/semantics/article
format article
status_str publishedVersion
dc.identifier.uri.fl_str_mv http://hdl.handle.net/1822/69086
url http://hdl.handle.net/1822/69086
dc.language.iso.fl_str_mv eng
language eng
dc.relation.none.fl_str_mv 1338-3957
10.15546/aeei-2018-0003
dc.rights.driver.fl_str_mv info:eu-repo/semantics/openAccess
eu_rights_str_mv openAccess
dc.format.none.fl_str_mv application/pdf
dc.publisher.none.fl_str_mv Technical University in Kosice. Faculty of Electrical Engineering and Informatics
publisher.none.fl_str_mv Technical University in Kosice. Faculty of Electrical Engineering and Informatics
dc.source.none.fl_str_mv reponame:Repositório Científico de Acesso Aberto de Portugal (Repositórios Cientìficos)
instname:Agência para a Sociedade do Conhecimento (UMIC) - FCT - Sociedade da Informação
instacron:RCAAP
instname_str Agência para a Sociedade do Conhecimento (UMIC) - FCT - Sociedade da Informação
instacron_str RCAAP
institution RCAAP
reponame_str Repositório Científico de Acesso Aberto de Portugal (Repositórios Cientìficos)
collection Repositório Científico de Acesso Aberto de Portugal (Repositórios Cientìficos)
repository.name.fl_str_mv Repositório Científico de Acesso Aberto de Portugal (Repositórios Cientìficos) - Agência para a Sociedade do Conhecimento (UMIC) - FCT - Sociedade da Informação
repository.mail.fl_str_mv
_version_ 1799132321270464512