Comparative Study of Manual and Generated Data Transfer Object Implementation Performance
The Data Transfer Object (DTO) is a fundamental component in Flutter application development, particularly in managing data serialization and deserialization. This study compares two DTO implementation methods—manual and generated—focusing on execution speed and memory efficiency. Testing was conduc...
Uloženo v:
| Vydáno v: | Journal of Applied Informatics and Computing Ročník 9; číslo 5; s. 2912 - 2919 |
|---|---|
| Hlavní autoři: | , , |
| Médium: | Journal Article |
| Jazyk: | angličtina |
| Vydáno: |
Politeknik Negeri Batam
21.10.2025
|
| Témata: | |
| ISSN: | 2548-6861, 2548-6861 |
| On-line přístup: | Získat plný text |
| Tagy: |
Přidat tag
Žádné tagy, Buďte první, kdo vytvoří štítek k tomuto záznamu!
|
| Shrnutí: | The Data Transfer Object (DTO) is a fundamental component in Flutter application development, particularly in managing data serialization and deserialization. This study compares two DTO implementation methods—manual and generated—focusing on execution speed and memory efficiency. Testing was conducted across three levels of data complexity (Small, Medium, and Large) over 100 iterations using Flutter DevTools. The findings reveal that the generated approach (utilizing libraries such as json_serializable) consistently outperforms the manual approach. Specifically, it achieves a 1:1.147 ratio in parsing speed and a 1:1.42 ratio in memory efficiency compared to manual DTOs. Although the manual method provides greater flexibility for implementing conditional parsing logic, it tends to be more error-prone and less efficient when handling large datasets. In contrast, the generated approach offers faster performance, better scalability, and reduced human error potential, making it the preferred option for projects demanding technical efficiency and rapid development cycles. Consequently, this study recommends adopting generated DTOs for applications dealing with large-scale and complex data, while reserving manual DTOs for cases requiring highly dynamic or conditional data parsing. |
|---|---|
| ISSN: | 2548-6861 2548-6861 |
| DOI: | 10.30871/jaic.v9i5.10818 |