MultiProcessingModeEnum
MultiProcessingModeEnum enumeration constants specify the mode of processing multi-page documents using multiple CPU cores.
typedef enum {
MPM_Sequential,
MPM_Auto,
MPM_Parallel
} MultiProcessingModeEnum;
Elements
Remarks
When parallel processing is used, the actual number of processes which is run depends on the value of the IMultiProcessingParams::RecognitionProcessesCount property.
If the value of the IMultiProcessingParams::RecognitionProcessesCount property is 0, the number of processes is equal to the minimum of the following values:
- number of available physical or logical CPU cores (depending on the value of the IMultiProcessingParams::UseOnlyPhysicalCPUCores property),
- number of free CPU cores available in the license,
- number of pages in the document.
If the value of the IMultiProcessingParams::RecognitionProcessesCount property is not 0, the number of processes is equal to the minimum of the following values:
- the value of the RecognitionProcessesCount property,
- number of free CPU cores available in the license,
- number of pages in the document.
The results of processing the same document in parallel processes and in a single process may be different. This is due to the fact that not all information which is used during processing can be shared between different processes.
The distribution among CPU cores is available for the following methods:
- the AddImageFile, AddImageFileFromMemory, AddImageFileFromStream, AddImageFileWithPassword, AddImageFileWithPasswordCallback, Preprocess, PreprocessPages, Analyze, AnalyzePages, Recognize, RecognizePages, Process, ProcessPages, Export, ExportPages, ExportToMemory methods of the FRDocument object
- the InjectTextLayer, RecognizeImageFile methods of the Engine object
Used in
17.09.2024 15:14:41