Function noLZSS::parallel_factorize_to_file(std::string_view, const std::string&, size_t, size_t)

Function Documentation

size_t noLZSS::parallel_factorize_to_file(std::string_view text, const std::string &output_path, size_t num_threads = 0, size_t start_pos = 0)

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

Uses multiple threads to factorize the input text in parallel, then merges the results into a single binary output file. Thread count is auto-detected if not specified.

Parameters:
  • text – Input text to factorize

  • 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