Function noLZSS::parallel_factorize_file_to_file(const std::string&, const std::string&, size_t, size_t)

Function Documentation

size_t noLZSS::parallel_factorize_file_to_file(const std::string &input_path, const std::string &output_path, size_t num_threads = 0, size_t start_pos = 0)

Factorizes text from file in parallel and writes results to a binary file.

Reads text from a file, factorizes it using multiple threads, and writes the results to a binary output file.

Parameters:
  • input_path – Path to input text file

  • output_path – Path to output binary file

  • num_threads – Number of threads (0 for auto-detection)

  • start_pos – Starting position in the text for factorization (default: 0)

Returns:

Number of factors produced