The scanner is multithreaded out of the box. Each of the different scanner worker tasks are run as their own thread. We are working on getting an Asynchronous pipeline execution task running which means that the scanner just submits the document (that has just been scanned) to the pipeline and immediately returns. This is based on a threadpool which pulls of the submitted documents and then submits them the to the pipeline. Dejan will be committing his new scanner code which promises to be much simpler and more robust. Stay tuned.
Note that this will be in the 1.1 series. We do not intend to do this for the 1.0 series.
regards,
Bruce.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is is possible to set the scanner in multithread mode ? If yes how can I do that and how can I control the number of running threads ?
I am getting very excited about babeldoc. It seems easy to extend and very flexible. I am going to use it in a project of in a small company.
Thanks,
Klaus
The scanner is multithreaded out of the box. Each of the different scanner worker tasks are run as their own thread. We are working on getting an Asynchronous pipeline execution task running which means that the scanner just submits the document (that has just been scanned) to the pipeline and immediately returns. This is based on a threadpool which pulls of the submitted documents and then submits them the to the pipeline. Dejan will be committing his new scanner code which promises to be much simpler and more robust. Stay tuned.
Note that this will be in the 1.1 series. We do not intend to do this for the 1.0 series.
regards,
Bruce.