Hi
We have a program that reads a directory of emails and converts the emails and attachments to PDFs and extracts the text from the PDFs, it’s using a combination of Email, Cells, Pdf and Words.
When we run it in parallel.foreach mode on an 8 core machine it will only go so fast using 8 threads, even if we change it to manually create 16 threads (using a producer consumer approach) it still doesn’t run any faster.
However if we run the application twice against 2 sets of the same data the CPU usage increases and it converts the data in the same amount of time.
So 100 emails with approx 76 assorted attachments:
- 1 process (8 threads) - approx 2m
- 1 process (16 threads) - approx 2m
- 2 processes on 2 copies of the same data - approx 2m
- 2 processes on 1 copy of the data split into 2 directories - approx 1m
It seems like there is some form of locking/restriction in the DLLs maybe that is limiting the threads?
Given 90% of the processing time is spent doing Aspose activities are you aware of any DLL limitations that might cause this, the memory is negligible and so is the disk activity and this is all on a local machine so there are no network issues either.
Thanks
Simon