Aspose::BarCode::BarCodeRecognition::BarCodeReader::get_ProcessorSettings method
BarCodeReader::get_ProcessorSettings method
Gets a settings of using processor cores.
static System::SharedPtr<Aspose::BarCode::Common::ProcessorSettings> Aspose::BarCode::BarCodeRecognition::BarCodeReader::get_ProcessorSettings()
Remarks
This sample shows how to use ProcessorSettings to add maximum multi-threaded performnce
[C#]
//this allows to use all cores for single BarCodeReader call
BarCodeReader.ProcessorSettings.UseAllCores = true;
//this allows to use current count of cores
BarCodeReader.ProcessorSettings.UseAllCores = false;
BarCodeReader.ProcessorSettings.UseOnlyThisCoresCount = Math.Max(1, Environment.ProcessorCount / 2);
[VB.NET]
'this allows to use all cores for single BarCodeReader call
BarCodeReader.ProcessorSettings.UseAllCores = True
'this allows to use current count of cores
BarCodeReader.ProcessorSettings.UseAllCores = False
BarCodeReader.ProcessorSettings.UseOnlyThisCoresCount = Math.Max(1, Environment.ProcessorCount / 2)
See Also
- Class ProcessorSettings
- Class BarCodeReader
- Namespace Aspose::BarCode::BarCodeRecognition
- Library Aspose.BarCode for C++