Inicio  /  Innovaciencia  /  Vol: 6 Núm: 1 Par: 0 (2018)  /  Artículo
ARTÍCULO
TITULO

Performance evaluation of list iteration methods in Java: an empirical study

Saman A. Barakat    
Qusay I. Sarhan    

Resumen

Introduction: Lists are used in various software applications including web applications, desktop applications, and Internet of Things (IoT) applications to store different types of items (e.g. country name, product model, and device category). Users can select one or more of these items to perform specific tasks such as filling forms, ordering products, reading device data, etc. In some software applications, lists store a huge number of items to be iterated over in order to know what users have selected. From a software development perspective, there are a number of methods to iterate over list items. Materials and Methods: In this paper, five list iteration methods: Classic For, Enhanced For, Iterator, List Iterator, and For Each have been compared experimentally with each other with regard to their performance (execution time required to iterate over list items). Thus, a number of experimental test scenarios have been conducted to obtain comparable results. Results and Discussion: The experimental results of this study have been presented in Table 4. Conclusions: Overall performance evaluation showed that Iterator and List Iterator methods outperformed other list iteration methods in all test scenarios. However, List Iterator outperformed Iterator when the list size was small. On the other hand, Iterator outperformed List Iterator when the list size was large.

 Artículos similares

       
 
Huang Feng and Yu Zhang    
Extensive research in predicting annual passenger throughput has been conducted, aiming at providing decision support for airport construction, aircraft procurement, resource management, flight scheduling, etc. However, how airport operational throughput... ver más
Revista: Aerospace

 
Ling Zhou, Peng Yan, Yanjun Zhang, Honglei Lei, Shuren Hao, Yueqiang Ma and Shaoyou Sun    
The optimization of the production scheme for enhanced geothermal systems (EGS) in geothermal fields is crucial for enhancing heat production efficiency and prolonging the lifespan of thermal reservoirs. In this study, the 4100?4300 m granite diorite str... ver más
Revista: Water

 
Lin Guo, Anand Balu Nellippallil, Warren F. Smith, Janet K. Allen and Farrokh Mistree    
When dealing with engineering design problems, designers often encounter nonlinear and nonconvex features, multiple objectives, coupled decision making, and various levels of fidelity of sub-systems. To realize the design with limited computational resou... ver más
Revista: Algorithms

 
Mihai Petru Stef and Zsolt Alfred Polgar    
With the constant growth of software-defined radio (SDR) technologies in fields related to wireless communications, the need for efficient ways of testing and evaluating the physical-layer (PHY) protocols developed for these technologies in real-life tra... ver más
Revista: Information

 
Hamed Taherdoost and Mitra Madanchian    
In recent years, artificial intelligence (AI) has seen remarkable advancements, stretching the limits of what is possible and opening up new frontiers. This comparative review investigates the evolving landscape of AI advancements, providing a thorough e... ver más
Revista: AI