Template Function noLZSS::factorize_file_stream
Defined in File factorizer.cpp
Function Documentation
-
template<class Sink>
size_t noLZSS::factorize_file_stream(const std::string &path, Sink &&sink) Factorizes text from a file using the noLZSS algorithm.
This template function reads text directly from a file and performs factorization without loading the entire file into memory. This is more memory-efficient for large files.
See also
factorize_file() for the non-template version that returns a vector
Note
This function builds the suffix tree directly from the file
- Template Parameters:
Sink – Callable type that accepts Factor objects
- Parameters:
path – Path to input file containing text
sink – Callable that receives each computed factor
- Returns:
Number of factors emitted