Sicos1977 / TesseractOCR

A .net library to work with Google's Tesseract
167 stars 21 forks source link

Multi-Threaded Tesseract DLL Build #57

Closed dotfurther closed 8 months ago

dotfurther commented 8 months ago

Is your tesseract DLL built with single threaded execution? Hopefully it is. Background: Charles Weld's build of tesseract DLL configures the DLL build for multi-threading of image processing (leptonica), etc. This makes it run slower on servers with multiple CPUs because of core affinity (also called processor affinity). In our case, we have multiple threads of the C# engine instances and if each engine instance also uses multi-threading (like above) then it leads to lower performance on servers/VMs due to core affinity.

Thank you.

Sicos1977 commented 8 months ago

It is build like this --> https://github.com/Sicos1977/TesseractOCR/wiki/Compling_tesseract_and_leptonica.md

The same like how Charles Weld's builds are.