OPTIMIZATION OF MEMORY USE BY IMPLEMENTATIONS OF  THE BASIC CORDEGEN METHOD

This paper is devoted to the task of generating text corpora “on demand” as input data for solving software engineering problems during the development of information systems for their processing. One of the methods that solves such a task is the basic CorDeGen method, however, as the analysis showed, practically none of the existing studies consider the issue of optimizing practical metrics of software implementations of this method, such as memory usage. Only a few papers propose pre-allocating memory for generated texts “with excess” to simplify and speed up the generation process by removing unnecessary checks and constant memory allocation. However, this approach, implemented as a fast heuristic formula, leads to increased memory usage in most cases. To solve this shortcoming, the paper proposes a formula for exactly estimating the length of each text by its ordinal index, depending on the input parameters of the basic CorDeGen method (the number of unique terms). This formula considers the set of terms that occur in a particular text, their length, the number of occurrences of each, as well as the length of separators between occurrences of the same term and between different terms. The experimental verification showed the effectiveness of using the proposed formula for exact text length estimation in terms of reducing memory consumption by the reference implementation of the basic CorDeGen method and its parallel modifications. The efficiency increases with the corpus size – from 3% for small (2500 unique terms) to 10% for very large corpora (312500 unique terms) compared to using the existing fast heuristic formula. At the same time, the degree of slowdown in the generation process decreases with increasing corpus size – from 17 to 6 percent at the same size. In practice, reducing memory consumption by increasing “net” generation time can be especially useful for systems with little or limited available memory to avoid memory overuse.

Authors

Institutions

Publication Details

Journal
Herald of Khmelnytskyi National University Technical sciences
Published
2025-06-16
DOI
https://doi.org/10.31891/2307-5732-2025-353-3
Primary Topic
Information Systems and Technology Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

OPTIMIZATION OF MEMORY USE BY IMPLEMENTATIONS OF  THE BASIC CORDEGEN METHOD

Yakiv Yusyn
Herald of Khmelnytskyi National University Technical sciences
Information Systems and Technology Applications
article

OPTIMIZATION OF MEMORY USE BY IMPLEMENTATIONS OF  THE BASIC CORDEGEN METHOD

Yakiv Yusyn
article en

Abstract

This paper is devoted to the task of generating text corpora “on demand” as input data for solving software engineering problems during the development of information systems for their processing. One of the methods that solves such a task is the basic CorDeGen method, however, as the analysis showed, practically none of the existing studies consider the issue of optimizing practical metrics of software implementations of this method, such as memory usage. Only a few papers propose pre-allocating memory for generated texts “with excess” to simplify and speed up the generation process by removing unnecessary checks and constant memory allocation. However, this approach, implemented as a fast heuristic formula, leads to increased memory usage in most cases. To solve this shortcoming, the paper proposes a formula for exactly estimating the length of each text by its ordinal index, depending on the input parameters of the basic CorDeGen method (the number of unique terms). This formula considers the set of terms that occur in a particular text, their length, the number of occurrences of each, as well as the length of separators between occurrences of the same term and between different terms. The experimental verification showed the effectiveness of using the proposed formula for exact text length estimation in terms of reducing memory consumption by the reference implementation of the basic CorDeGen method and its parallel modifications. The efficiency increases with the corpus size – from 3% for small (2500 unique terms) to 10% for very large corpora (312500 unique terms) compared to using the existing fast heuristic formula. At the same time, the degree of slowdown in the generation process decreases with increasing corpus size – from 17 to 6 percent at the same size. In practice, reducing memory consumption by increasing “net” generation time can be especially useful for systems with little or limited available memory to avoid memory overuse.

Herald of Khmelnytskyi National University Technical sciencesVol. 353(3.2)
National Technical University of Ukraine “Igor Sikorsky Kyiv Polytechnic Institute” (UA)
Openalex Percentile: Top 53%
Information Systems and Technology Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.