Proceedings Article10.1145/3548636.3548655
Memory Usage Comparison in an Android Application: Basic Object-Oriented Programming vs Decorator Design Pattern: Coding styles for keeping low memory usage in a mobile application.
Wasana Ngaogate
- 23 Jun 2022
1
TL;DR: The result shows that an Android application which developed by using decorator design pattern consumes more memory although its codes are cleaner and easier to read, therefore, when a developer applies decorators design pattern, they should pay more attention on unexpected effect of the design pattern.
read more
Abstract: This paper explores how an Android application consumes memory when it is developed by two approaches: basic object-oriented programming versus decorator design pattern. Somehow programmers develop applications based on their coding experience without concern of memory usage especially in mobile applications which memory consumption is a critical issue. The deployed Android application of a list of temples which join a Candle Festival is selected as a case study. New functions are assumingly required by users so that the application could provide more services. Two class diagrams are designed based on basic object-oriented programming and based on decorator design pattern before implementation of the two approaches. The problem is what is the better approach for handling an increasing number of services after the application has been deployed. So that the application still consumes less memory as possible. The case-study applications retrieve information from a free REST API. Memory usage is measured by using an emulator and a physical device. The result shows that an Android application which developed by using decorator design pattern consumes more memory although its codes are cleaner and easier to read. Therefore, when a developer applies decorator design pattern, they should pay more attention on unexpected effect of the design pattern. Research in impact of design patterns should also be investigated more.
read more
Chat with Paper
AI Agents for this Paper
Find similar papers on Google Scholar, PubMed and Arxiv
Write a critical review of this paper
Analyze citations of this paper to find unaddressed research gaps
Citations
Events-Based Test Suite Reduction for Mobile App Test Suites Generated by Reinforcement Learning
Abdullah Alenzi,Waleed Alhumud,Md Khorrom Khan,Ryan Michaels,Renee Bryce +4 more
- 24 Jul 2023
TL;DR: This work uses test suites that were generated with the SARSA algorithm and applies a greedy test suite reduction algorithm that uses an event coverage criterion, showing that redundant event coverage should be considered during and/or after test generation.
References
•Book
Design Patterns: Elements of Reusable Object-Oriented Software
Erich Gamma,Richard Helm,Ralph E. Johnson,John Vlissides +3 more
- 01 Jan 1994
TL;DR: The book is an introduction to the idea of design patterns in software engineering, and a catalog of twenty-three common patterns, which most experienced OOP designers will find out they've known about patterns all along.
24.8K
Development of Mobile Cloud Applications using UML
TL;DR: This paper presents development processes and procedures for developing mobile cloud applications by effectively applying Unified Modeling Language (UML), a representative object-oriented modeling language to enhance the development productivity of the mobile cloud application and to improve the effectiveness of communication between software developers.
Impact of mobile cross-platform development on CPU, memory and battery of mobile devices when using common mobile app features
TL;DR: The resource and energy efficiency of the widely-used MCPD approach React Native is compared to native Android, which shows that the investigatedMCPD approach consumed between 6% to 8% more energy than the Android native counterpart.
24
A theoretical model for capturing the impact of design patterns on quality: the decorator case study
Sofia Charalampidou,Apostolus Ampatzoglou,Paris Avgeriou,Seren Sencer,Elvira-Maria Arvanitou,Ioannis Stamelos +5 more
- 03 Apr 2017
TL;DR: A theoretical model for understanding the effect of patterns on quality is proposed and the results suggest that Decorator instances that are not expected to evolve through the addition of components in composite objects decrease system cohesion and therefore, modularity and maintainability are weakened.
11
Related Papers (5)
Francesco Logozzo
- 28 Jan 2012
Elizabeth Bjarnason,Görel Hedin +1 more
- 09 Jun 1997
Mario Südholt,Christoph Steigner +1 more
- 05 Oct 1992
Piotr Kosiuczenko
- 28 Mar 2009
Tom Tourwé,Wolfgang De Meuter +1 more
- 22 Mar 1999