Introduction: Lists are used in various software applications including web applications, desktop applications, and Internet ofThings (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 asfilling forms, ordering products, reading device data, etc. In somesoftware 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 toiterate over list items. Materials and Methods: In this paper, fivelist iteration methods: Classic For, Enhanced For, Iterator, List Iterator, and For Each have been compared experimentally with eachother with regard to their performance (execution time required toiterate over list items). Thus, a number of experimental test scenarios have been conducted to obtain the comparison results. Resultsand Discussion: The experimental results of this study have beenpresented in Table 4. Conclusions: Overall performance evaluation showed that Iterator and List Iterator methods outperformedother list iteration methods in all test scenarios. However, List Iterator outperformed Iterator when the list size was small. On theother hand, Iterator outperformed List Iterator when the list sizewas large.
Tópico:
IoT and Edge/Fog Computing
Citaciones:
0
Citaciones por año:
No hay datos de citaciones disponibles
Altmétricas:
0
Información de la Fuente:
FuenteInnovaciencia Facultad de Ciencias Exactas Físicas y Naturales