Vol.15, No.2, May 2026.                                                                                                                                                                          ISSN: 2217-8309

                                                                                                                                                                                                                        eISSN: 2217-8333

 

TEM Journal

 

TECHNOLOGY, EDUCATION, MANAGEMENT, INFORMATICS

Association for Information Communication Technology Education and Science

 

Execution Efficiency of the Use of Language-Integrated Queries in Word Frequency Analysis of Relatively Large Text Files in a C# Application

 

Igor Košťál, Marian Reiff

 

© 2026 Igor Košťál, published by UIKTEN. This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. (CC BY-NC-ND 4.0)

 

Citation Information: TEM Journal. Volume 15, Issue 2, Pages 991-1006, ISSN 2217-8309, DOI: 10.18421/TEM152-04, May 2026.

 

Received: 17 July 2025.
Revised: 13 January 2026.
Accepted: 23 January 2026.
Published: 27 May 2026.

 

Abstract:

 

Word frequency analysis, i.e., counting how often each word appears in a given collection of text data, is a frequently occurring programming task during the creation of text processing applications. Its effective implementation in the source code of the application is very important, especially if it is performed on relatively large text files, e.g., on a 536 MB file, which can even contain up to 95 million words. To find the most efficient implementation of word frequency analysis performed on such files in a C# application, several methods were created in it that perform such an analysis of a text file. Five methods were created to perform word frequency analysis using language-integrated queries (LINQ) sequentially and in parallel, and 3 methods were created that perform this analysis without using LINQ queries sequentially and in parallel. Each of these methods measures the execution time of its frequency analysis. It is assumed that methods that perform word frequency analysis using LINQ queries should be more execution efficient, especially when analysing relatively large files, than methods that perform this analysis without using LINQ queries. By comparing the execution times of individual methods, it was examined whether the hypothesis is true or false. If this hypothesis is confirmed, then the most execution-efficient method among the 5 methods using LINQ queries will be identified. This most efficient method can be used in a C# application, in a Linguistic Analyser of english-written works. The results and evaluation of this experiment are presented in the paper.

 

Keywords – Word frequency analysis, language-integrated query, sequential and parallel event handler method, C# application.

 

-----------------------------------------------------------------------------------------------------------

Full text PDF >  

-----------------------------------------------------------------------------------------------------------

 


Copyright © 2026 UIKTEN
Copyright licence: All articles are licenced via Creative Commons CC BY-NC-ND 4.0 licence