Performance Analysis of Span Data Type in C# Programming Language
Türk Doğa ve Fen Dergisi · 01.10.2024 · (1) · 29-36
DOI: 10.46810/tdfd.1425662 ↗Kurz gefasst
Fachartikel in der Zeitschrift Türk Doğa ve Fen Dergisi, online erschienen am 01.10.2024. Verfasst von Hakan Akdoğan und 3 weiteren Autor:innen. Die Arbeit wurde bisher 2-mal zitiert (Crossref) und nennt 14 Literaturangaben.
Abstract (Originalsprache)
This study presents a comparative analysis of the Span data type in the C# programming language against other data types. Span is a data type supported in .NET Core 2.1 and later versions, and this research investigates its impact on method performance and memory usage. The primary objective of the study is to highlight the potential advantages of the Span data type for C# developers. In pursuit of this goal, the study examines the performance effects of the Span data type through comparative analyses using various methods. For instance, when comparing the StringReplace and SpanReplace methods over 1000 iterations, it is observed that SpanReplace is significantly faster. Similarly, analyses conducted on methods like Contains used in data types such as Queue, List, and Stack demonstrate the performance advantages of the Span data type. In scenarios where the Span data type is employed, it is determined that memory consumption is lower compared to other data types. These findings can assist C# programmers in understanding the potential of the Span data type and optimizing their code accordingly. The Span data type may be a more effective option, especially in data processing and performance-sensitive applications.
Zitieren
APA
Akdoğan, H., Duymaz, H. İ., Kocakır, N., & Karademir, Ö. (2024). Performance Analysis of Span Data Type in C# Programming Language. Türk Doğa ve Fen Dergisi, 29-36. https://doi.org/10.46810/tdfd.1425662
Vancouver
Akdoğan H, Duymaz Hİ, Kocakır N, Karademir Ö. Performance Analysis of Span Data Type in C# Programming Language. Türk Doğa ve Fen Dergisi. 2024:29-36. doi:10.46810/tdfd.1425662
BibTeX
@article{Akdoan2024,
author = {Akdoğan, Hakan and Duymaz, Halil İbrahim and Kocakır, Nadir and Karademir, Önder},
title = {Performance Analysis of Span Data Type in C# Programming Language},
journal = {Türk Doğa ve Fen Dergisi},
year = {2024},
number = {1},
pages = {29--36},
doi = {10.46810/tdfd.1425662}
}
EUVIMED