Comparative Study of Manual and Generated Data Transfer Object Implementation Performance

Authors

  • Chandro Pardede Kanazawa University
  • Wilson Sihombing Institut Teknologi Del
  • Winfrey Nainggolan Institut Teknologi Del

DOI:

https://doi.org/10.30871/jaic.v9i5.10818

Keywords:

Data Transfer Object, Flutter, Json serializable, Parsing, Performance

Abstract

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.

Downloads

Download data is not yet available.

References

[1] F. Mushtaq, F. Azam, and M. W. Anwar, “Performance Comparison of Single Code Base Development Tools: Flutter, React Native, and Xamarin,” Proc. 2024 14th Int. Conf. Softw. Technol. Eng. (ICSTE 2024), May 2025, pp. 17–23, 2024, doi: 10.1109/ICSTE68572.2024.00011.

[2] M. Fowler, M. Rice, D. Foemmel, M. Hieatt, E. Mee, and R. Stafford, Patterns of Enterprise Application Architecture. 2002.

[3] T. Greifeneder et al., “Integration of handwritten and generated object-oriented code,” Commun. Comput. Inf. Sci., vol. 580, pp. 121–128, 2015, doi: 10.1007/978-3-319-27480-9_14.

[4] T. Stahl and M. Völter, Model-Driven Software. 2006.

[5] F. Programmard, “What others in the trenches say about.”

[6] E. Umuhoza, “Domain-specific modeling and code generation for cross-platform mobile-device mobile apps,” CEUR Workshop Proc., vol. 1499, pp. 50–60, 2015.

[7] Á. Fernández-Llamazares, J. Díaz-Reviriego, A. C. Luz, M. Cabeza, A. Pyhälä, and V. Reyes-García, “Rapid ecosystem change challenges the adaptive capacity of local environmental knowledge,” Glob. Environ. Change, vol. 31, pp. 272–284, 2015, doi: 10.1016/j.gloenvcha.2015.02.001.

[8] G. Jorden et al., “Synthetic Data – what, why and how?,” May 2022, doi: 10.48550/arXiv.2205.03257.

[9] H. Swoboda, Microbenchmark, Juv. Angiobiforma, 1976, pp. 9–21, doi: 10.1007/978-3-319-45349-3_8.

[10] M. Azis, A. Pinaindo, and I. Maghfiroh, “Analisis Perbandingan Performa State Management pada Aplikasi Berbasis Flutter menggunakan Framework Flutter,” J. Pengemb. Teknol. Inf. dan Ilmu Komput., vol. 7, no. 1, pp. 148–153, 2023.

[11] Dewangga Andria Sulaeman, Iman Nurul Sya’bani, and M. Ashof Azria Azka, and M. Abdurroho, “Ruang Lingkup Organisasi dan Arsitektur Komputer,” J. Elektron dan Tek. Inform. (JETINK), vol. 1, no. 4, pp. 164–177, 2023, doi: 10.59061/jetink.v1i4.519.

[12] M. N. A. Rakhman, F. Saro, and M. Hammar, “A Survey of Performance Optimization for Mobile Applications,” IEEE Trans. Softw. Eng., vol. 48, no. 8, pp. 2879–2904, 2022, doi: 10.1109/TSE.2021.3071193.

[13] J. C. Violot and M. Kinderkhedia, “A Benchmark of JSON-compatible Binary Serialization Specifications,” 2022, [Online]. Available: https://doi.org/10.48550/arXiv.2201.03051

[14] D. Kaplans and D. Beyerman, “Execution Time Estimation of Multithreaded Systems with Critical Sections,” IEEE Trans. Parallel Distrib. Syst., vol. 10, no. 10, pp. 2470–2481, 2022, doi: 10.1109/TPDS.2022.3143455.

[15] J. C. Violot and M. Kinderkhedia, “A Survey of JSON-compatible Binary Serialization Specifications,” 2021, [Online]. Available: https://doi.org/10.48550/arXiv.2021.020892

Downloads

Published

2025-10-21

How to Cite

[1]
C. Pardede, W. Sihombing, and W. Nainggolan, “Comparative Study of Manual and Generated Data Transfer Object Implementation Performance”, JAIC, vol. 9, no. 5, pp. 2912–2919, Oct. 2025.

Similar Articles

1 2 3 4 5 > >> 

You may also start an advanced similarity search for this article.